Kaynağa Gözat

Check that microblog config file exists

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

+ 7
- 1
src/freedombone Dosyayı Görüntüle

8532
         exit 72357
8532
         exit 72357
8533
     fi
8533
     fi
8534
 
8534
 
8535
-    # Some useful settings
8535
+    # check microblog has a config file
8536
     microblog_config_file=/var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php
8536
     microblog_config_file=/var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php
8537
+    if [ ! -f $microblog_config_file ]; then
8538
+        echo $'Microblog config.php not found'
8539
+        exit 87586
8540
+    fi
8541
+
8542
+    # Some useful settings
8537
     if ! grep -q "Recommended GNU social settings" $microblog_config_file; then
8543
     if ! grep -q "Recommended GNU social settings" $microblog_config_file; then
8538
         echo "" >> $microblog_config_file
8544
         echo "" >> $microblog_config_file
8539
         echo "// Recommended GNU social settings" >> $microblog_config_file
8545
         echo "// Recommended GNU social settings" >> $microblog_config_file