FIX: Reverted status message of copy_logrotate.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2021-12-18 22:14:24 +01:00
parent c3a1c63e94
commit 3e2413f73a
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

View File

@ -109,9 +109,9 @@ function copy_logrotate {
template="/etc/logrotate.d/webcamd"
logrotatefile="${HOME}/crowsnest/file_templates/logrotate_webcamd"
if [ -n "$(diff_files "${template}" "${logrotatefile}")" ]; then
echo -e "Copying logrotate file ... [OK]\r"
sudo cp -rf "${logrotatefile}" "${template}" > /dev/null
echo -en "Copying logrotate file ...\r"
sudo cp -rf "${logrotatefile}" "${template}" > /dev/null
echo -e "Copying logrotate file ... [OK]\r"
else
echo -e "No update of 'logrotate/webcamd' required."
fi