[PATCH 4 of 5] Fixed crontab setup for system wide (de)installation
Wald Commits
scm-commit at wald.intevation.org
Tue Jul 8 11:36:46 CEST 2014
# HG changeset patch
# User Sascha Wilde <wilde at intevation.de>
# Date 1404809573 -7200
# Node ID 9f0ad4bab175525283ce5a47963e855747a83479
# Parent 7c3a8a8d3e52db0d042632a03c2ea6b85110a511
Fixed crontab setup for system wide (de)installation.
diff -r 7c3a8a8d3e52 -r 9f0ad4bab175 packaging/linux-installer.inc.in
--- a/packaging/linux-installer.inc.in Fri Jul 04 18:44:06 2014 +0200
+++ b/packaging/linux-installer.inc.in Tue Jul 08 10:52:53 2014 +0200
@@ -207,11 +207,17 @@
local crontabopt=''
fi
+ if [ "$1" != "deinstall" ] ; then
+ local trustbridge_tray_starter="${instcfg[PREFIX]}/bin/trustbridge-tray-starter.sh"
+ else
+ local trustbridge_tray_starter="${oldinstcfg[PREFIX]}/bin/trustbridge-tray-starter.sh"
+ fi
+
crontab $crontabopt -l | \
- grep -vF "${instcfg[PREFIX]}/bin/trustbridge-tray-starter.sh" \
+ grep -vF "$trustbridge_tray_starter" \
>"$tmpcrontab"
if [ "$1" != "deinstall" ] ; then
- echo "$(( $RANDOM / 555 )) 12 * * * \"${instcfg[PREFIX]}/bin/trustbridge-tray-starter.sh\"" \
+ echo "$(( $RANDOM / 555 )) 12 * * * \"$trustbridge_tray_starter\"" \
>>"$tmpcrontab"
fi
crontab $crontabopt "$tmpcrontab"
More information about the Trustbridge-commits
mailing list