Browse Source

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

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

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

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

Loading…
Cancel
Save