Bob Mottram 9 anni fa
parent
commit
494ffdbc98
1 ha cambiato i file con 10 aggiunte e 10 eliminazioni
  1. 10
    10
      src/freedombone

+ 10
- 10
src/freedombone Vedi File

5648
         if grep -q "Nginx-ensite commit" $COMPLETION_FILE; then
5648
         if grep -q "Nginx-ensite commit" $COMPLETION_FILE; then
5649
             CURRENT_NGINX_ENSITE_COMMIT=$(grep "Nginx-ensite commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
5649
             CURRENT_NGINX_ENSITE_COMMIT=$(grep "Nginx-ensite commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
5650
             if [[ "$CURRENT_NGINX_ENSITE_COMMIT" != "$NGINX_ENSITE_COMMIT" ]]; then
5650
             if [[ "$CURRENT_NGINX_ENSITE_COMMIT" != "$NGINX_ENSITE_COMMIT" ]]; then
5651
-                cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
5651
+				$INSTALL_DIR/nginx_ensite
5652
                 git stash
5652
                 git stash
5653
                 git checkout master
5653
                 git checkout master
5654
                 git pull
5654
                 git pull
6343
         echo $'Added onion site for Owncloud'
6343
         echo $'Added onion site for Owncloud'
6344
     fi
6344
     fi
6345
 
6345
 
6346
-    service php5-fpm restart
6347
-    service nginx restart
6346
+    systemctl restart php5-fpm
6347
+    systemctl restart nginx
6348
     systemctl restart tor
6348
     systemctl restart tor
6349
     sleep 2
6349
     sleep 2
6350
 
6350
 
6672
         echo $'Added onion site for Gogs'
6672
         echo $'Added onion site for Gogs'
6673
     fi
6673
     fi
6674
 
6674
 
6675
-    service php5-fpm restart
6676
-    service nginx restart
6675
+    systemctl restart php5-fpm
6676
+    systemctl restart nginx
6677
     systemctl restart tor
6677
     systemctl restart tor
6678
     sleep 2
6678
     sleep 2
6679
 
6679
 
8762
         echo $'Added onion site for Hubzilla'
8762
         echo $'Added onion site for Hubzilla'
8763
     fi
8763
     fi
8764
 
8764
 
8765
-    service php5-fpm restart
8766
-    service nginx restart
8767
-    service cron restart
8765
+    systemctl restart php5-fpm
8766
+    systemctl restart nginx
8767
+    systemctl restart cron
8768
     systemctl restart tor
8768
     systemctl restart tor
8769
     sleep 2
8769
     sleep 2
8770
 
8770
 
9018
     fi
9018
     fi
9019
 
9019
 
9020
     nginx_ensite $MEDIAGOBLIN_DOMAIN_NAME
9020
     nginx_ensite $MEDIAGOBLIN_DOMAIN_NAME
9021
-    service php5-fpm restart
9022
-    service nginx restart
9021
+    systemctl restart php5-fpm
9022
+    systemctl restart nginx
9023
     /usr/sbin/nginx -s reload
9023
     /usr/sbin/nginx -s reload
9024
 
9024
 
9025
     # update the dynamic DNS
9025
     # update the dynamic DNS