gogs에서 가져온 install 파일 제대로 수정
This commit is contained in:
parent
d1ab41a818
commit
d65062d633
|
@ -1,21 +1,8 @@
|
|||
post_install() {
|
||||
cat <<EOF
|
||||
:: If you do not have a custom configuration files finish the setup:
|
||||
1) systemctl start gogs.service
|
||||
2) open the installation page http://localhost:3000
|
||||
otherwise:
|
||||
place your custom configuration files in /var/lib/gogs/custom
|
||||
1) systemctl stop changer
|
||||
2) open and edit /etc/changer/settings.yml
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue