Ver código fonte

Check for presence of installer

Bob Mottram 9 anos atrás
pai
commit
656cedeb75
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone Ver arquivo

8802
 
8802
 
8803
     # Create the configuration
8803
     # Create the configuration
8804
     gnu_social_installer=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs/scripts/install_cli.php
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
     ${gnu_social_installer} --server "${MICROBLOG_DOMAIN_NAME}" \
8809
     ${gnu_social_installer} --server "${MICROBLOG_DOMAIN_NAME}" \
8806
                             --host="localhost" --database="gnusocial" \
8810
                             --host="localhost" --database="gnusocial" \
8807
                             --dbtype=mysql --username="root" -v \
8811
                             --dbtype=mysql --username="root" -v \