From 674b3f010cf65e960f4561153ac431fb6bf0a23d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 4 Feb 2016 14:37:05 +0000 Subject: [PATCH] Check that microblog config file exists --- src/freedombone | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/freedombone b/src/freedombone index 514bf618..042c3a02 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8532,8 +8532,14 @@ function install_gnu_social { exit 72357 fi - # Some useful settings + # check microblog has a config file microblog_config_file=/var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php + if [ ! -f $microblog_config_file ]; then + echo $'Microblog config.php not found' + exit 87586 + fi + + # Some useful settings if ! grep -q "Recommended GNU social settings" $microblog_config_file; then echo "" >> $microblog_config_file echo "// Recommended GNU social settings" >> $microblog_config_file