1
0
Fork 0

gogs에서 가져온 install 파일 제대로 수정

This commit is contained in:
Sangbum Kim 2017-04-27 23:43:29 +09:00
parent d1ab41a818
commit d65062d633
1 changed files with 2 additions and 15 deletions

View File

@ -1,21 +1,8 @@
post_install() { post_install() {
cat <<EOF cat <<EOF
:: If you do not have a custom configuration files finish the setup: :: If you do not have a custom configuration files finish the setup:
1) systemctl start gogs.service 1) systemctl stop changer
2) open the installation page http://localhost:3000 2) open and edit /etc/changer/settings.yml
otherwise:
place your custom configuration files in /var/lib/gogs/custom
EOF EOF
} }
post_upgrade() {
if [ ! -d /etc/changer ]; then
mkdir -p /etc/changer
fi
if [ ! -f /etc/gogs/app.ini ] && [ -f /srv/gogs/conf/app.ini ]; then
echo ":: Gogs app.ini copied to new place"
install -d -o gogs -g gogs /etc/gogs/
install -d -o gogs -g gogs /etc/gogs/
install -m644 -o gogs -g gogs -t /etc/gogs/ /srv/gogs/conf/app.ini
fi
}