Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2025-01-30 20:21:07 +03:00
parent 43f19810a1
commit 345fc9147e

View File

@ -46,6 +46,8 @@ fi
FROM=$1
TO=$2
SLEEP=${SLEEP:-}
# XXX should we build TO if it's not there???
@ -57,6 +59,9 @@ TO=$2
@ lxc-attach $TO -- turnkey-occ maintenance:mode --on
# XXX should we sleep here for a minute or 6 as is recommended in the docs???
[ -z "$SLEEP" ] \
|| [ $SLEEP <= 0 ] \
|| sleep $(( $SLEEP * 60 ))
# sql
@ lxc-attach $TO -- mysql -e "DROP DATABASE nextcloud"