gitea-page/scripts/postinstall.sh
kekskurse 58386b0699
All checks were successful
continuous-integration/drone/push Build is passing
Stuff
2022-12-06 12:53:19 +01:00

16 lines
No EOL
418 B
Bash

#/bin/sh
FILE=/etc/gitea-page/config.yml
if [ -f "$FILE" ]; then
systemctl daemon-reload
systemctl restart gitea-page
else
cp /etc/gitea-page/config.yml.example /etc/gitea-page/config.yml
fi
FILE=/etc/gitea-page/nginx-config-template.txt.example
if [ -f "$FILE" ]; then
echo "Dont update config"
else
cp /etc/gitea-page/nginx-config-template.txt.example /etc/gitea-page/nginx-config-template.txt
fi