Compare commits

...

5 Commits

Author SHA1 Message Date
a89bd08c44 tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-15 01:06:15 +03:00
a79aedfc7e tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-15 01:05:10 +03:00
e0b24c452f tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-15 00:54:28 +03:00
93eafd706f minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-15 00:37:03 +03:00
fb17a8dbc0 pretty urls in nextcloud...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-15 00:26:10 +03:00
2 changed files with 10 additions and 2 deletions

View File

@ -53,8 +53,8 @@ check: check-message $(foreach dep,$(DEPENDENCIES),require($(dep)))
FORCE:
%: %/make.sh FORCE
$<
%: config %/make.sh FORCE
$*/make.sh
%.config: %/config.example

View File

@ -100,6 +100,14 @@ IP=$([ -z $DRY_RUN ] && lxc-attach $ID -- hostname -I)
sed -z -i \
-e \"s/\\(trusted_domains[^)]*\\)/\\1 2 => '${IP/ *}',\\n /\" \
/var/www/nextcloud/config/config.php"
# remove /index.php from urls...
# for more info see:
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#pretty-urls
@ lxc-attach $ID -- bash -c "\
sed -i \
-e \"/trusted_proxies/i\\ 'htaccess.RewriteBase' => '\\/',\\n\" \
/var/www/nextcloud/config/config.php"
@ lxc-attach $ID -- turnkey-occ maintenance:update:htaccess
echo "# Copying assets..."
@ pct-push-r $ID ./assets /