mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 03:00:09 +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..."
|
echo "# Building config..."
|
||||||
buildAssets
|
buildAssets
|
||||||
|
|||||||
@ -155,6 +155,8 @@ pctPushAssets $ID
|
|||||||
# Colabora...
|
# Colabora...
|
||||||
# XXX should this be a function/script, callable separately, usefull to
|
# XXX should this be a function/script, callable separately, usefull to
|
||||||
# update existing installations???
|
# 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
|
if ! [ -z $COLLABORA_OFFICE ] ; then
|
||||||
echo "# Collabora office..."
|
echo "# Collabora office..."
|
||||||
# see:
|
# see:
|
||||||
|
|||||||
@ -49,6 +49,8 @@ fi
|
|||||||
FROM=$1
|
FROM=$1
|
||||||
TO=$2
|
TO=$2
|
||||||
|
|
||||||
|
SLEEP=${SLEEP:-}
|
||||||
|
|
||||||
|
|
||||||
# XXX should we build TO if it's not there???
|
# XXX should we build TO if it's not there???
|
||||||
|
|
||||||
@ -60,6 +62,9 @@ TO=$2
|
|||||||
@ lxc-attach $TO -- turnkey-occ maintenance:mode --on
|
@ lxc-attach $TO -- turnkey-occ maintenance:mode --on
|
||||||
|
|
||||||
# XXX should we sleep here for a minute or 6 as is recommended in the docs???
|
# XXX should we sleep here for a minute or 6 as is recommended in the docs???
|
||||||
|
[ -z "$SLEEP" ] \
|
||||||
|
|| [ $SLEEP <= 0 ] \
|
||||||
|
|| sleep $(( $SLEEP * 60 ))
|
||||||
|
|
||||||
# sql
|
# sql
|
||||||
@ lxc-attach $TO -- mysql -e "DROP DATABASE nextcloud"
|
@ lxc-attach $TO -- mysql -e "DROP DATABASE nextcloud"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user