Kaynağa Gözat

Try sleep after restart

Bob Mottram 9 yıl önce
ebeveyn
işleme
49dee59df8
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. 9
    0
      src/freedombone

+ 9
- 0
src/freedombone Dosyayı Görüntüle

@@ -3711,6 +3711,7 @@ function configure_ssh_onion {
3711 3711
     fi
3712 3712
 
3713 3713
     systemctl restart tor
3714
+    sleep 2
3714 3715
 
3715 3716
     if [ ! -f /var/lib/tor/hidden_service_ssh/hostname ]; then
3716 3717
         echo $'ssh onion domain hostname not found'
@@ -4224,6 +4225,7 @@ function configure_email {
4224 4225
     fi
4225 4226
 
4226 4227
     systemctl restart tor
4228
+    sleep 2
4227 4229
 
4228 4230
     if [ ! -f /var/lib/tor/hidden_service_email/hostname ]; then
4229 4231
         echo $'Email onion domain hostname not found'
@@ -6336,6 +6338,7 @@ quit" > $INSTALL_DIR/batch.sql
6336 6338
     service php5-fpm restart
6337 6339
     service nginx restart
6338 6340
     systemctl restart tor
6341
+    sleep 2
6339 6342
 
6340 6343
     if [ ! -f /var/lib/tor/hidden_service_owncloud/hostname ]; then
6341 6344
         echo $'Owncloud onion site hostname not found'
@@ -6664,6 +6667,7 @@ quit" > $INSTALL_DIR/batch.sql
6664 6667
     service php5-fpm restart
6665 6668
     service nginx restart
6666 6669
     systemctl restart tor
6670
+    sleep 2
6667 6671
 
6668 6672
     if [ ! -f /var/lib/tor/hidden_service_gogs/hostname ]; then
6669 6673
         echo $'Gogs onion site hostname not found'
@@ -7058,6 +7062,7 @@ function install_xmpp {
7058 7062
     fi
7059 7063
 
7060 7064
     systemctl restart tor
7065
+    sleep 2
7061 7066
 
7062 7067
     if [ ! -f /var/lib/tor/hidden_service_xmpp/hostname ]; then
7063 7068
         echo $'XMPP onion site hostname not found'
@@ -7586,6 +7591,7 @@ function install_wiki {
7586 7591
     systemctl restart php5-fpm
7587 7592
     systemctl restart nginx
7588 7593
     systemctl restart tor
7594
+    sleep 2
7589 7595
 
7590 7596
     if [ ! -f /var/lib/tor/hidden_service_wiki/hostname ]; then
7591 7597
         echo $'Wiki onion site hostname not found'
@@ -7998,6 +8004,7 @@ function install_blog {
7998 8004
     systemctl restart php5-fpm
7999 8005
     systemctl restart nginx
8000 8006
     systemctl restart tor
8007
+    sleep 2
8001 8008
 
8002 8009
     if [ ! -f /var/lib/tor/hidden_service_blog/hostname ]; then
8003 8010
         echo $'Blog onion site hostname not found'
@@ -8314,6 +8321,7 @@ quit" > $INSTALL_DIR/batch.sql
8314 8321
     systemctl restart php5-fpm
8315 8322
     systemctl restart nginx
8316 8323
     systemctl restart tor
8324
+    sleep 2
8317 8325
 
8318 8326
     if [ ! -f /var/lib/tor/hidden_service_microblog/hostname ]; then
8319 8327
         echo $'GNU Social onion site hostname not found'
@@ -8750,6 +8758,7 @@ quit" > $INSTALL_DIR/batch.sql
8750 8758
     service nginx restart
8751 8759
     service cron restart
8752 8760
     systemctl restart tor
8761
+    sleep 2
8753 8762
 
8754 8763
     if [ ! -f /var/lib/tor/hidden_service_hubzilla/hostname ]; then
8755 8764
         echo $'Hubzilla onion site hostname not found'