
1 changed files with 2 additions and 2 deletions
@ -1,10 +1,10 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
status=$(systemctl show gitea -p ActiveState --value) |
status=$(systemctl show gitea -p ActiveState --value) |
||||
if [[ $status == active]]; then |
if [[ $status == active ]]; then |
||||
systemctl stop gitea |
systemctl stop gitea |
||||
fi |
fi |
||||
db-make |
db-make |
||||
psql -U $DBUSER -d $DBNAME -f $1 |
psql -U $DBUSER -d $DBNAME -f $1 |
||||
if [[ $status == active]]; then |
if [[ $status == active ]]; then |
||||
systemctl start gitea |
systemctl start gitea |
||||
fi |
fi |
||||
|
Loading…
Reference in new issue