mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 12:29:53 +01:00
19 lines
431 B
Bash
19 lines
431 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -euxo pipefail
|
||
|
|
||
|
sudo -u pronouns git pull
|
||
|
sudo -u pronouns make all
|
||
|
|
||
|
while getopts 'm' OPTION; do
|
||
|
case "$OPTION" in
|
||
|
m)
|
||
|
sudo systemctl stop pronouns-api pronouns-fe pronouns-exporter
|
||
|
sudo -u pronouns ./pronouns database migrate
|
||
|
sudo systemctl start pronouns-api pronouns-fe pronouns-exporter
|
||
|
;;
|
||
|
?)
|
||
|
sudo systemctl restart pronouns-api pronouns-fe
|
||
|
;;
|
||
|
esac
|
||
|
done
|