Parcourir la source

Check for presence of installer

Bob Mottram il y a 9 ans
Parent
révision
656cedeb75
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone Voir le fichier

@@ -8802,6 +8802,10 @@ function install_gnu_social {
8802 8802
 
8803 8803
     # Create the configuration
8804 8804
     gnu_social_installer=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs/scripts/install_cli.php
8805
+    if [ ! -f $gnu_social_installer ]; then
8806
+        echo $'No GNU Social commandline installer found'
8807
+        exit 53026
8808
+    fi
8805 8809
     ${gnu_social_installer} --server "${MICROBLOG_DOMAIN_NAME}" \
8806 8810
                             --host="localhost" --database="gnusocial" \
8807 8811
                             --dbtype=mysql --username="root" -v \