Merge branch 'master' of github.com:flynx/proxmox-utils

This commit is contained in:
Alex A. Naanou 2025-02-04 22:49:11 +03:00
commit d62bf16831
3 changed files with 101 additions and 90 deletions

View File

@ -51,6 +51,10 @@ OPTS_STAGE_2="\
#----------------------------------------------------------------------
# XXX do a version using alpune...
# see:
# https://wiki.alpinelinux.org/wiki/Gitea
#
echo "# Building config..."
buildAssets

View File

@ -155,6 +155,8 @@ pctPushAssets $ID
# Colabora...
# XXX should this be a function/script, callable separately, usefull to
# update existing installations???
# XXX can we make the backup/restore/migrate scripts generic and simply adapt
# them for running in lxc, over ssh or locally???
if ! [ -z $COLLABORA_OFFICE ] ; then
echo "# Collabora office..."
# see:

View File

@ -49,6 +49,8 @@ fi
FROM=$1
TO=$2
SLEEP=${SLEEP:-}
# XXX should we build TO if it's not there???
@ -60,6 +62,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"