Changed error and warning messages for consistency (using CAPS)
This commit is contained in:
parent
4d43b03419
commit
5a6d287d94
@ -336,11 +336,11 @@ if [ "$borgCreateResult" = "0" ]; then
|
|||||||
elif [ "$borgCreateResult" = "1" ]; then
|
elif [ "$borgCreateResult" = "1" ]; then
|
||||||
echo -e "\e[1;33m[`date +%Y-%m-%d` `date +%H:%M:%S`] --WARNING--" \
|
echo -e "\e[1;33m[`date +%Y-%m-%d` `date +%H:%M:%S`] --WARNING--" \
|
||||||
"BorgBackup completed with WARNINGS." >> $logFile
|
"BorgBackup completed with WARNINGS." >> $logFile
|
||||||
echo -e "--Warning-- Please check Borg's output.\e[0m" >> $logFile
|
echo -e "--WARNING-- Please check Borg's output.\e[0m" >> $logFile
|
||||||
else
|
else
|
||||||
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR--" \
|
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR--" \
|
||||||
"BorgBackup encountered a serious ERROR." >> $logFile
|
"BorgBackup encountered a serious ERROR." >> $logFile
|
||||||
echo -e "--Error-- Please check Borg's output.\e[0m" >> $logFile
|
echo -e "--ERROR-- Please check Borg's output.\e[0m" >> $logFile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Have BorgBackup prune the repo to remove old archives
|
## Have BorgBackup prune the repo to remove old archives
|
||||||
@ -355,11 +355,11 @@ if [ "$borgPruneResult" = "0" ]; then
|
|||||||
elif [ "$borgPruneResult" = "1" ]; then
|
elif [ "$borgPruneResult" = "1" ]; then
|
||||||
echo -e "\e[1;33m[`date +%Y-%m-%d` `date +%H:%M:%S`] --WARNING--" \
|
echo -e "\e[1;33m[`date +%Y-%m-%d` `date +%H:%M:%S`] --WARNING--" \
|
||||||
"BorgBackup PRUNE operation completed with WARNINGS." >> $logFile
|
"BorgBackup PRUNE operation completed with WARNINGS." >> $logFile
|
||||||
echo -e "--Warning-- Please check Borg's output.\e[0m" >> $logFile
|
echo -e "--WARNING-- Please check Borg's output.\e[0m" >> $logFile
|
||||||
else
|
else
|
||||||
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR--" \
|
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR--" \
|
||||||
"BorgBackup PRUNE operation encountered a serious ERROR." >> $logFile
|
"BorgBackup PRUNE operation encountered a serious ERROR." >> $logFile
|
||||||
echo -e "--Error-- Please check Borg's output.\e[0m" >> $logFile
|
echo -e "--ERROR-- Please check Borg's output.\e[0m" >> $logFile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Put NextCloud back into operational mode
|
## Put NextCloud back into operational mode
|
||||||
|
Loading…
Reference in New Issue
Block a user