mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-30 11:40:07 +00:00
made the nextcloud setup semi-manual (testing)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0fda14bab3
commit
90a142ad3c
@ -148,7 +148,7 @@ normpath(){
|
|||||||
# https://pve.proxmox.com/wiki/Linux_Container
|
# https://pve.proxmox.com/wiki/Linux_Container
|
||||||
getLatestTemplate(){
|
getLatestTemplate(){
|
||||||
#IFS=$'\n'
|
#IFS=$'\n'
|
||||||
@ pveam update
|
#@ pveam update
|
||||||
|
|
||||||
local templates=($(pveam available | grep -o ''${1}'.*$'))
|
local templates=($(pveam available | grep -o ''${1}'.*$'))
|
||||||
local latest=${templates[-1]}
|
local latest=${templates[-1]}
|
||||||
|
|||||||
@ -68,18 +68,18 @@ getLatestTemplate '.*-turnkey-nextcloud' TEMPLATE
|
|||||||
pctCreate $ID "$TEMPLATE" "$OPTS_STAGE_1" "$PASS"
|
pctCreate $ID "$TEMPLATE" "$OPTS_STAGE_1" "$PASS"
|
||||||
sleep ${TIMEOUT:=5}
|
sleep ${TIMEOUT:=5}
|
||||||
|
|
||||||
echo "# Starting TKL Setup (this may take a few minutes to start)..."
|
#echo "# Starting TKL Setup (this may take a few minutes to start)..."
|
||||||
@ lxc-attach $ID -- bash --login -i
|
#@ lxc-attach $ID -- bash --login -i
|
||||||
#@ lxc-attach $ID -- /usr/sbin/trunkey-init
|
##@ lxc-attach $ID -- /usr/sbin/trunkey-init
|
||||||
|
#
|
||||||
echo "# Updating config..."
|
#echo "# Updating config..."
|
||||||
# XXX update /var/www/nextcloud/config/config.php
|
## XXX update /var/www/nextcloud/config/config.php
|
||||||
# - trusted_domains
|
## - trusted_domains
|
||||||
# - trusted_proxies
|
## - trusted_proxies
|
||||||
@ lxc-attach $ID -- \
|
#@ lxc-attach $ID -- \
|
||||||
sed \
|
# sed \
|
||||||
-e 's/^\(\s*\)\('\''trusted_domains\)/\1'\''trusted_proxies'\'' =>\n\1array (\n\1\1'${GATE_LAN_IP}'\/32\n\1)\n\1\2/' \
|
# -e 's/^\(\s*\)\('\''trusted_domains\)/\1'\''trusted_proxies'\'' =>\n\1array (\n\1\1'${GATE_LAN_IP}'\/32\n\1)\n\1\2/' \
|
||||||
-i /var/www/nextcloud/config/config.php
|
# -i /var/www/nextcloud/config/config.php
|
||||||
|
|
||||||
echo "# Copying assets..."
|
echo "# Copying assets..."
|
||||||
@ pct-push-r $ID ./assets /
|
@ pct-push-r $ID ./assets /
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user