fix(updater): critical typo in func copy_logrotate

wrong path used for variable "logrotatefile"

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2022-03-07 21:13:47 +01:00
parent bb6ed2f417
commit 62ee73b6da
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

View File

@ -157,7 +157,7 @@ function copy_logrotate {
template="${HOME}/crowsnest/file_templates/logrotate_webcamd"
cp -rf "${template}" /tmp/webcamd
sudo sed -i 's|pi|'"${BASE_USER}"'|g' /tmp/webcamd
logrotatefile="/tmp/logrotate_webcamd"
logrotatefile="/tmp/webcamd"
else
logrotatefile="${HOME}/crowsnest/file_templates/logrotate_webcamd"
fi