check unpersisted state for every command

This commit is contained in:
Jérémy Lecour 2022-04-02 16:28:13 +02:00 committed by Jérémy Lecour
parent a544f64c78
commit 3f2a94231b

View file

@ -1035,9 +1035,10 @@ reset() {
echo "${NAME} version ${VERSION}" echo "${NAME} version ${VERSION}"
source_configuration source_configuration
check_unpersisted_state
case "${1:-''}" in case "${1:-''}" in
start) start)
check_unpersisted_state
start start
;; ;;
@ -1054,7 +1055,6 @@ case "${1:-''}" in
;; ;;
restart) restart)
check_unpersisted_state
stop stop
start start
;; ;;