From: Bernhard Tittelbach Date: Sat, 8 Feb 2020 00:34:32 +0000 (+0100) Subject: update script X-Git-Url: https://git.realraum.at/?p=noc.git;a=commitdiff_plain;h=059b8379aaf465bd82ea33a3e1d01d5a1d38efda update script --- 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}