From 059b8379aaf465bd82ea33a3e1d01d5a1d38efda Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Sat, 8 Feb 2020 01:34:32 +0100 Subject: [PATCH] update script --- ansible/files/torwaechter/update-keys-from-stdin.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ansible/files/torwaechter/update-keys-from-stdin.sh b/ansible/files/torwaechter/update-keys-from-stdin.sh index 2a11eff..3ca2a1a 100755 --- a/ansible/files/torwaechter/update-keys-from-stdin.sh +++ b/ansible/files/torwaechter/update-keys-from-stdin.sh @@ -3,14 +3,10 @@ set -eu ## this script takes keys on STDIN and programs teenstep eeprom -MONIT_STOP="/etc/init.d/monit stop" -MONIT_START="/etc/init.d/monit start" -TUERDAEMON_STOP="/etc/init.d/tuer_core stop" -TUERDAEMON_START="/etc/init.d/tuer_core start" -UPDATE_KEYS_TOOL="/flash/tuer/update-keys /dev/door" +TUERDAEMON_STOP="/etc/init.d/doord stop" +TUERDAEMON_START="/etc/init.d/doord start" +UPDATE_KEYS_TOOL="/usr/local/bin/update-keys /dev/door" -## stop monit. it monit not installed or error. don't start monit again later -${MONIT_STOP} || MONIT_START="" ## stop door daemon. ${TUERDAEMON_STOP} ## give daemons time to stop @@ -19,5 +15,4 @@ sleep 1 ${UPDATE_KEYS_TOOL} ## start daemon again ${TUERDAEMON_START} -${MONIT_START} -- 1.7.10.4