From 56303443ea6106d52cfc42e85d7b762fc75cfd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Jacquet?= Date: Sun, 22 Sep 2019 23:33:41 +0200 Subject: [PATCH] Remove database install script Use InstallDatabase.php instead --- bin/init | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/bin/init b/bin/init index 633eca3..6e9b8fc 100755 --- a/bin/init +++ b/bin/init @@ -10,24 +10,6 @@ else locale-gen fi -echo "Configuring database" -RETRIES=5 - -until psql -c "select 1" > /dev/null 2>&1 || [ $RETRIES -eq 0 ]; do - echo "Waiting for postgres server, $((RETRIES--)) remaining attempts..." - sleep 1 -done - - -DB_EXISTS=`psql -l | grep ${PGDATABASE} | wc -l` - -echo 'Database '$DB_EXISTS -if [ "$DB_EXISTS" -gt "0" ]; then - psql -f /usr/src/rosariosis/rosariosis.sql -else - echo "Database does not exists" -fi - set -e # first arg is `-f` or `--some-option`