From 49dee59df85c5c927fb2eef0386028d1718e5195 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 4 Jan 2016 14:54:34 +0000 Subject: [PATCH] Try sleep after restart --- src/freedombone | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/freedombone b/src/freedombone index 18b120e2..981da4ff 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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'