post and pre install of ahenk fixed

This commit is contained in:
agahhulusi 2021-09-08 15:17:24 +03:00
parent 7880d5658b
commit 78ecc8af5f
4 changed files with 6 additions and 6 deletions

View file

@ -6,8 +6,8 @@ fi
# End automatically added section
# Automatically added by dh_installinit
if [[ "$1" = "configure" ]] || [[ "$1" = "abort-upgrade" ]]; then
if [[ -x "/etc/init.d/ahenk" ]]; then
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/ahenk" ]; then
update-rc.d ahenk defaults >/dev/null
invoke-rc.d ahenk start || exit $?
fi

2
debian/ahenk.postrm vendored
View file

@ -2,6 +2,6 @@
set -e
if [[ -d /etc/ahenk ]] && [[ "$1" = "purge" ]];then
if [ -d /etc/ahenk ] && [ "$1" = "purge" ];then
rm -rf /etc/ahenk
fi

View file

@ -1,12 +1,12 @@
# Automatically added by dh_installinit
if [[ "$1" = "purge" ]] ; then
if [ "$1" = "purge" ] ; then
update-rc.d ahenk remove >/dev/null
fi
# In case this system is running systemd, we make systemd reload the unit files
# to pick up changes.
if [[ -d /run/systemd/system ]] ; then
if [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section

View file

@ -4,7 +4,7 @@ set -e
# Create necessary directories
#update ahenk from 1.0.0-6 to 1.0.0-7
if [[ -d /etc/ahenk ]]; then
if [ -d /etc/ahenk ]; then
cp -rf /etc/ahenk /tmp