mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Adjusted entrypoint ops
This commit is contained in:
16
database.sh
vendored
16
database.sh
vendored
@@ -1,6 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/logs/pgsql.log start
|
sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/logs/pgsql.log start &&
|
||||||
sudo -u postgres psql -f create_db.sql
|
sudo -u postgres psql -f create_db.sql &&
|
||||||
rm /srv/http/database.sh
|
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
|
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
|
chmod +x /srv/http/database.sh &&
|
||||||
|
cd src && \
|
||||||
|
python manage.py makemigrations && \
|
||||||
|
python manage.py makemigrations interface && \
|
||||||
|
python manage.py migrate && \
|
||||||
|
python manage.py migrate interface && \
|
||||||
|
cd .. &&
|
||||||
|
|||||||
Reference in New Issue
Block a user