3d5e021578
- Built the package - Built the iso - Verified if the package was installed correctly Story: 2009101 Task: 43697 Change-Id: Id10c87f9a24329b533864411075e096f56dbcd8b Signed-off-by: Mihnea Saracin <Mihnea.Saracin@windriver.com>
22 lines
663 B
Bash
22 lines
663 B
Bash
#!/bin/sh
|
|
# see: dh_installdeb(1)
|
|
|
|
set -e
|
|
|
|
if [ "${1}" = "configure" ] ; then
|
|
# Package upgrade: reenable in case [Install] changes and restart to pick up
|
|
# new actions
|
|
if /usr/bin/systemctl --quiet is-enabled k8s-pod-recovery.service ; then
|
|
/usr/bin/systemctl reenable k8s-pod-recovery.service > /dev/null 2>&1 || :
|
|
/usr/bin/systemctl restart k8s-pod-recovery.service > /dev/null 2>&1 || :
|
|
else
|
|
# Package install: enable and start it
|
|
/usr/bin/systemctl enable k8s-pod-recovery.service > /dev/null 2>&1 || :
|
|
/usr/bin/systemctl start k8s-pod-recovery.service > /dev/null 2>&1 || :
|
|
fi
|
|
fi
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|