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