Browse Source

bugfix

feature/startup-from-labels
Mario Alegre 4 years ago
parent
commit
8e708863d0
  1. 4
      gitea/assets/bin/db-load

4
gitea/assets/bin/db-load

@ -1,10 +1,10 @@
#!/bin/bash
status=$(systemctl show gitea -p ActiveState --value)
if [[ $status == active]]; then
if [[ $status == active ]]; then
systemctl stop gitea
fi
db-make
psql -U $DBUSER -d $DBNAME -f $1
if [[ $status == active]]; then
if [[ $status == active ]]; then
systemctl start gitea
fi

Loading…
Cancel
Save