Browse Source

Not always apache is used

Alexandros Ioannides 7 years ago
parent
commit
cb20b0bfd1
1 changed files with 6 additions and 1 deletions
  1. 6 1
      install/vst-install-ubuntu.sh

+ 6 - 1
install/vst-install-ubuntu.sh

@@ -1163,7 +1163,12 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
     mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql
     mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql
     php5enmod mcrypt 2>/dev/null
     php5enmod mcrypt 2>/dev/null
     phpenmod mcrypt 2>/dev/null
     phpenmod mcrypt 2>/dev/null
-    service apache2 restart
+    if [ "$apache" = 'yes' ]; then
+        service apache2 restart
+    fi
+    if [ "$nginx" = 'yes' ]; then
+        service nginx restart
+    fi
 fi
 fi