Started apache and listening

This commit is contained in:
Sergio C. Orozco Torres 2017-09-22 07:14:48 -05:00
parent b3b328f80c
commit 6b09ab1b44
1 changed files with 10 additions and 1 deletions

View File

@ -24,6 +24,15 @@ DB_EXISTS=`psql -l | grep rosariosis | wc -l`
echo 'Database '$DB_EXISTS
if [ "$DB_EXISTS" -eq "1" ]; then
psql -f /usr/src/rosariosis/rosariosis.sql
else
else
echo "Database does not exists"
fi
set -e
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- php "$@"
fi
exec "$@"