fix(update): fixes error in func copy_logrotate

set wrong variable in function

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2022-02-27 18:32:01 +01:00
parent c60cf2fd49
commit 1aa310341f
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

View File

@ -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