Syntax fix / Message for more verbose output
This commit is contained in:
parent
8f72e7ff98
commit
46dc8c171c
4
main.sh
4
main.sh
@ -164,7 +164,7 @@ function dockerbackup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function runbackup {
|
function runbackup {
|
||||||
if [ "enabled" = true]
|
if [ "enabled" = true ]
|
||||||
then
|
then
|
||||||
# step 1 : create directory
|
# step 1 : create directory
|
||||||
makedir
|
makedir
|
||||||
@ -182,6 +182,8 @@ function runbackup {
|
|||||||
# push data to server
|
# push data to server
|
||||||
push
|
push
|
||||||
echo "Voila, enjoy the rest of the day" >&2
|
echo "Voila, enjoy the rest of the day" >&2
|
||||||
|
else
|
||||||
|
echo "Backup is disabled in the configuration" >&2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user