You've already forked Gitea-Action
Inital Commit
This commit is contained in:
32
root/DEBIAN/postinst
Normal file
32
root/DEBIAN/postinst
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
if [ -d '/run/systemd/system' ]; then
|
||||
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
|
||||
case "${1}" in
|
||||
configure)
|
||||
if [ -x '/usr/bin/deb-systemd-helper' ]; then
|
||||
/usr/bin/deb-systemd-helper unmask 'gitea-action.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
if /usr/bin/deb-systemd-helper --quiet was-enabled 'gitea-action.service'; then
|
||||
/usr/bin/deb-systemd-helper enable 'gitea-action.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
else
|
||||
/usr/bin/deb-systemd-helper update-state 'gitea-action.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
if [ -x '/etc/init.d/traefik-certs-dumper' ]; then
|
||||
/usr/sbin/update-rc.d 'gitea-action' defaults > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
/usr/bin/chown --quiet 'gitea':'gitea' '/var/cache/gitea-action'
|
||||
/usr/bin/chown --quiet 'gitea':'gitea' '/var/lib/gitea-action'
|
||||
/usr/bin/chown --quiet --recursive 'gitea' '/etc/gitea'
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user