From 1aa310341fbd88a503c6bf78ac5aaa6d81b158d6 Mon Sep 17 00:00:00 2001 From: Stephan Wendel <me@stephanwe.de> Date: Sun, 27 Feb 2022 18:32:01 +0100 Subject: [PATCH] fix(update): fixes error in func copy_logrotate set wrong variable in function Signed-off-by: Stephan Wendel <me@stephanwe.de> --- tools/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/update.sh b/tools/update.sh index ab60f55..d84cca8 100755 --- a/tools/update.sh +++ b/tools/update.sh @@ -154,7 +154,7 @@ function copy_logrotate { if [ ! "${BASE_USER}" == "pi" ]; then cp -rf "${origin}" /tmp/logrotate_webcamd sudo sed -i 's|pi|'"${BASE_USER}"'|g' /tmp/webcamd.service - servicefile="/tmp/logrotate_webcamd" + logrotatefile="/tmp/logrotate_webcamd" else logrotatefile="${HOME}/crowsnest/file_templates/logrotate_webcamd" fi