Add postinst script to migrate templates
This commit is contained in:
parent
40882559d6
commit
1061d26488
13
debian/postinst
vendored
Executable file
13
debian/postinst
vendored
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
legacy_incs_policy_tpl="/usr/local/share/bkctld/inc.tpl"
|
||||||
|
new_incs_policy_tpl="/usr/local/share/bkctld/incs_policy.tpl"
|
||||||
|
|
||||||
|
if [ -e "${legacy_incs_policy_tpl}" ]; then
|
||||||
|
mv -f "${new_incs_policy_tpl}" "${new_incs_policy_tpl}.dpkg-new"
|
||||||
|
mv -f "${legacy_incs_policy_tpl}" "${new_incs_policy_tpl}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in a new issue