Browse Source

new: [rsync-backup-target] correct misleading output

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
backup
Valentin Lab 4 years ago
parent
commit
9123ffe8f4
  1. 4
      rsync-backup-target/resources/bin/compose-add-rsync-key

4
rsync-backup-target/resources/bin/compose-add-rsync-key

@ -133,13 +133,15 @@ EOF
if [ -z "$opt_no_reload" ]; then if [ -z "$opt_no_reload" ]; then
## reloading (could be much faster) ## reloading (could be much faster)
compose --debug down && compose --debug up compose --debug down && compose --debug up
fi
if [ "$?" == 0 ]; then if [ "$?" == 0 ]; then
echo "Added key, and restarted service ${DARKYELLOW}$service_name${NORMAL}." echo "Added key, and restarted service ${DARKYELLOW}$service_name${NORMAL}."
else else
echo "something went wrong ! Should check the state of '$DOMAIN' !!" echo "something went wrong ! Should check the state of '$DOMAIN' !!"
exit 1 exit 1
fi fi
else
echo "Added key, you'll need to restart service ${DARKYELLOW}$service_name${NORMAL}."
fi
} }

Loading…
Cancel
Save