mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 11:10:09 +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
|
||||
getLatestTemplate(){
|
||||
#IFS=$'\n'
|
||||
@ pveam update
|
||||
#@ pveam update
|
||||
|
||||
local templates=($(pveam available | grep -o ''${1}'.*$'))
|
||||
local latest=${templates[-1]}
|
||||
|
||||
@ -68,18 +68,18 @@ getLatestTemplate '.*-turnkey-nextcloud' TEMPLATE
|
||||
pctCreate $ID "$TEMPLATE" "$OPTS_STAGE_1" "$PASS"
|
||||
sleep ${TIMEOUT:=5}
|
||||
|
||||
echo "# Starting TKL Setup (this may take a few minutes to start)..."
|
||||
@ lxc-attach $ID -- bash --login -i
|
||||
#@ lxc-attach $ID -- /usr/sbin/trunkey-init
|
||||
|
||||
echo "# Updating config..."
|
||||
# XXX update /var/www/nextcloud/config/config.php
|
||||
# - trusted_domains
|
||||
# - trusted_proxies
|
||||
@ lxc-attach $ID -- \
|
||||
sed \
|
||||
-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
|
||||
#echo "# Starting TKL Setup (this may take a few minutes to start)..."
|
||||
#@ lxc-attach $ID -- bash --login -i
|
||||
##@ lxc-attach $ID -- /usr/sbin/trunkey-init
|
||||
#
|
||||
#echo "# Updating config..."
|
||||
## XXX update /var/www/nextcloud/config/config.php
|
||||
## - trusted_domains
|
||||
## - trusted_proxies
|
||||
#@ lxc-attach $ID -- \
|
||||
# sed \
|
||||
# -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
|
||||
|
||||
echo "# Copying assets..."
|
||||
@ pct-push-r $ID ./assets /
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user