adjust entry point parameters

This commit is contained in:
Raelon Masters
2020-04-07 15:24:40 -04:00
parent 8b901fb889
commit 98cb00d1ab
2 changed files with 1 additions and 7 deletions

2
entry.sh vendored
View File

@@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
git fetch git pull
sh /srv/http/database.sh sh /srv/http/database.sh

6
make_databases.sh vendored
View File

@@ -1,6 +0,0 @@
#!/bin/bash
sh -c sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/logs/pgsql.log start
sh -c sudo -u postgres psql -f create_db.sql
rm /srv/http/database.sh
echo "sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/logs/lgsql.log start" > /srv/http/database.sh
chmod +x /srv/http/database.sh