|
@ -133,12 +133,14 @@ 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 |
|
|
|
|
|
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 |
|
|
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 |
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|