mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 09:42:15 +03:00
post and pre install of ahenk fixed
This commit is contained in:
parent
7880d5658b
commit
78ecc8af5f
4 changed files with 6 additions and 6 deletions
4
debian/ahenk.postinst.debhelper
vendored
4
debian/ahenk.postinst.debhelper
vendored
|
@ -6,8 +6,8 @@ fi
|
||||||
|
|
||||||
# End automatically added section
|
# End automatically added section
|
||||||
# Automatically added by dh_installinit
|
# Automatically added by dh_installinit
|
||||||
if [[ "$1" = "configure" ]] || [[ "$1" = "abort-upgrade" ]]; then
|
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
|
||||||
if [[ -x "/etc/init.d/ahenk" ]]; then
|
if [ -x "/etc/init.d/ahenk" ]; then
|
||||||
update-rc.d ahenk defaults >/dev/null
|
update-rc.d ahenk defaults >/dev/null
|
||||||
invoke-rc.d ahenk start || exit $?
|
invoke-rc.d ahenk start || exit $?
|
||||||
fi
|
fi
|
||||||
|
|
2
debian/ahenk.postrm
vendored
2
debian/ahenk.postrm
vendored
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ -d /etc/ahenk ]] && [[ "$1" = "purge" ]];then
|
if [ -d /etc/ahenk ] && [ "$1" = "purge" ];then
|
||||||
rm -rf /etc/ahenk
|
rm -rf /etc/ahenk
|
||||||
fi
|
fi
|
||||||
|
|
4
debian/ahenk.postrm.debhelper
vendored
4
debian/ahenk.postrm.debhelper
vendored
|
@ -1,12 +1,12 @@
|
||||||
# Automatically added by dh_installinit
|
# Automatically added by dh_installinit
|
||||||
if [[ "$1" = "purge" ]] ; then
|
if [ "$1" = "purge" ] ; then
|
||||||
update-rc.d ahenk remove >/dev/null
|
update-rc.d ahenk remove >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# In case this system is running systemd, we make systemd reload the unit files
|
# In case this system is running systemd, we make systemd reload the unit files
|
||||||
# to pick up changes.
|
# to pick up changes.
|
||||||
if [[ -d /run/systemd/system ]] ; then
|
if [ -d /run/systemd/system ] ; then
|
||||||
systemctl --system daemon-reload >/dev/null || true
|
systemctl --system daemon-reload >/dev/null || true
|
||||||
fi
|
fi
|
||||||
# End automatically added section
|
# End automatically added section
|
||||||
|
|
2
debian/ahenk.preinst
vendored
2
debian/ahenk.preinst
vendored
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
# Create necessary directories
|
# Create necessary directories
|
||||||
#update ahenk from 1.0.0-6 to 1.0.0-7
|
#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
|
cp -rf /etc/ahenk /tmp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue