Fixing stuff

This commit is contained in:
Bob Mottram 2016-01-04 15:55:24 +00:00
parent 1dac2d77aa
commit 494ffdbc98
1 changed files with 10 additions and 10 deletions

View File

@ -5648,7 +5648,7 @@ function install_web_server {
if grep -q "Nginx-ensite commit" $COMPLETION_FILE; then if grep -q "Nginx-ensite commit" $COMPLETION_FILE; then
CURRENT_NGINX_ENSITE_COMMIT=$(grep "Nginx-ensite commit" $COMPLETION_FILE | awk -F ':' '{print $2}') CURRENT_NGINX_ENSITE_COMMIT=$(grep "Nginx-ensite commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
if [[ "$CURRENT_NGINX_ENSITE_COMMIT" != "$NGINX_ENSITE_COMMIT" ]]; then if [[ "$CURRENT_NGINX_ENSITE_COMMIT" != "$NGINX_ENSITE_COMMIT" ]]; then
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs $INSTALL_DIR/nginx_ensite
git stash git stash
git checkout master git checkout master
git pull git pull
@ -6343,8 +6343,8 @@ quit" > $INSTALL_DIR/batch.sql
echo $'Added onion site for Owncloud' echo $'Added onion site for Owncloud'
fi fi
service php5-fpm restart systemctl restart php5-fpm
service nginx restart systemctl restart nginx
systemctl restart tor systemctl restart tor
sleep 2 sleep 2
@ -6672,8 +6672,8 @@ quit" > $INSTALL_DIR/batch.sql
echo $'Added onion site for Gogs' echo $'Added onion site for Gogs'
fi fi
service php5-fpm restart systemctl restart php5-fpm
service nginx restart systemctl restart nginx
systemctl restart tor systemctl restart tor
sleep 2 sleep 2
@ -8762,9 +8762,9 @@ quit" > $INSTALL_DIR/batch.sql
echo $'Added onion site for Hubzilla' echo $'Added onion site for Hubzilla'
fi fi
service php5-fpm restart systemctl restart php5-fpm
service nginx restart systemctl restart nginx
service cron restart systemctl restart cron
systemctl restart tor systemctl restart tor
sleep 2 sleep 2
@ -9018,8 +9018,8 @@ function install_mediagoblin {
fi fi
nginx_ensite $MEDIAGOBLIN_DOMAIN_NAME nginx_ensite $MEDIAGOBLIN_DOMAIN_NAME
service php5-fpm restart systemctl restart php5-fpm
service nginx restart systemctl restart nginx
/usr/sbin/nginx -s reload /usr/sbin/nginx -s reload
# update the dynamic DNS # update the dynamic DNS