gitea-page/scripts/postinstall.sh

16 lines
418 B
Bash
Raw Normal View History

2022-12-06 11:19:14 +00:00
#/bin/sh
FILE=/etc/gitea-page/config.yml
if [ -f "$FILE" ]; then
systemctl daemon-reload
2022-12-06 11:44:00 +00:00
systemctl restart gitea-page
2022-12-06 11:19:14 +00:00
else
cp /etc/gitea-page/config.yml.example /etc/gitea-page/config.yml
2022-12-06 11:53:19 +00:00
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
2022-12-06 11:19:14 +00:00
fi