Try sleep after restart

This commit is contained in:
Bob Mottram 2016-01-04 14:54:34 +00:00
parent accf0c0125
commit 49dee59df8
1 changed files with 9 additions and 0 deletions

View File

@ -3711,6 +3711,7 @@ function configure_ssh_onion {
fi
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_ssh/hostname ]; then
echo $'ssh onion domain hostname not found'
@ -4224,6 +4225,7 @@ function configure_email {
fi
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_email/hostname ]; then
echo $'Email onion domain hostname not found'
@ -6336,6 +6338,7 @@ quit" > $INSTALL_DIR/batch.sql
service php5-fpm restart
service nginx restart
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_owncloud/hostname ]; then
echo $'Owncloud onion site hostname not found'
@ -6664,6 +6667,7 @@ quit" > $INSTALL_DIR/batch.sql
service php5-fpm restart
service nginx restart
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_gogs/hostname ]; then
echo $'Gogs onion site hostname not found'
@ -7058,6 +7062,7 @@ function install_xmpp {
fi
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_xmpp/hostname ]; then
echo $'XMPP onion site hostname not found'
@ -7586,6 +7591,7 @@ function install_wiki {
systemctl restart php5-fpm
systemctl restart nginx
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_wiki/hostname ]; then
echo $'Wiki onion site hostname not found'
@ -7998,6 +8004,7 @@ function install_blog {
systemctl restart php5-fpm
systemctl restart nginx
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_blog/hostname ]; then
echo $'Blog onion site hostname not found'
@ -8314,6 +8321,7 @@ quit" > $INSTALL_DIR/batch.sql
systemctl restart php5-fpm
systemctl restart nginx
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_microblog/hostname ]; then
echo $'GNU Social onion site hostname not found'
@ -8750,6 +8758,7 @@ quit" > $INSTALL_DIR/batch.sql
service nginx restart
service cron restart
systemctl restart tor
sleep 2
if [ ! -f /var/lib/tor/hidden_service_hubzilla/hostname ]; then
echo $'Hubzilla onion site hostname not found'