2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

50_Signalbot: Improved upgrade install (service restart)

git-svn-id: https://svn.fhem.de/fhem/trunk@25004 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Adimarantis 2021-09-22 10:33:36 +00:00
parent 1183c1413c
commit 2e79a5cd39

View File

@ -277,6 +277,7 @@ fi
if [ $NEEDINSTALL = 1 ]; then
echo "Proceed with signal cli installation"
stop_service
cd /tmp
echo -n "Downloading signal-cli $SIGNALVERSION..."
wget -qN https://github.com/AsamK/signal-cli/releases/download/v$SIGNALVERSION/signal-cli-$SIGNALVERSION.tar.gz
@ -306,8 +307,6 @@ if [ $NEEDINSTALL = 1 ]; then
echo "done"
fi
echo "done"
echo -n "Changing file ownership ..."
echo "done"
rm -f /tmp/signal-cli-$SIGNALVERSION.tar.gz
fi
fi
@ -446,6 +445,9 @@ REP1=`echo $REPLY | grep $SIGNALVERSION`
if [ -n "$REP1" ]; then
echo "success" # - "signal-cli running in standard registration mode"
else
echo "unexpected reply"
echo $REPLY
fi
#if [ -n "$REP2" ]; then
# echo "partial success - still running in -u mode - check $SYSTEMD/signal.service"