mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 10:40:07 +00:00
Merge branch 'master' of github.com:flynx/proxmox-utils
This commit is contained in:
commit
d62bf16831
@ -51,6 +51,10 @@ OPTS_STAGE_2="\
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# XXX do a version using alpune...
|
||||
# see:
|
||||
# https://wiki.alpinelinux.org/wiki/Gitea
|
||||
#
|
||||
|
||||
echo "# Building config..."
|
||||
buildAssets
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user