|
@@ -43,11 +43,15 @@ output_html(){
|
|
|
|
|
|
vnstat_install(){
|
|
|
|
|
|
-
|
|
|
+
|
|
|
if [ ! -e '/etc/redhat-release' ]; then
|
|
|
+
|
|
|
apt -y install vnstat nginx
|
|
|
else
|
|
|
- yum -y install vnstat nginx wget
|
|
|
+
|
|
|
+ yum -y install vnstat nginx
|
|
|
+ systemctl enable nginx
|
|
|
+ systemctl restart nginx
|
|
|
fi
|
|
|
|
|
|
|