
1 changed files with 2 additions and 2 deletions
@ -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…
Reference in new issue