Compare commits

...

8 Commits

Author SHA1 Message Date
0b4a7678ea cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 23:17:51 +03:00
bef23ac6d1 notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 23:15:40 +03:00
4fc41034e1 oops...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 17:20:12 +03:00
a4210a6523 fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 16:31:17 +03:00
91872525ba notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 16:29:50 +03:00
5fb8b70cdf tweaks and fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 16:28:15 +03:00
a47f6d7c1e tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 16:21:04 +03:00
507a418c6c notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 16:16:48 +03:00
3 changed files with 30 additions and 12 deletions

View File

@ -1021,6 +1021,10 @@ showNotes(){
&& ( cat "${BUILD_NOTES}".tpl \
| expandPCTTemplate $@ \
| tee "${BUILD_NOTES}" )
[ -e ./POST_INSTALL.md ] \
&& echo "####" \
&& cat ./POST_INSTALL.md \
| sed 's/^/## /'
}
#

14
nextcloud/POST_INSTALL.md Normal file
View File

@ -0,0 +1,14 @@
## Post install steps:
- Open Administration settings -> Office -- this will initialize the office;
To check see if the /Templates directory is populated.
- Update Nextcoud to the latest version via Administration settings, this
can take more than one run
- Apply the recommended in Administration settings `occ` commands, usually:
- `turnkey-occ maintenance:repair --include-expansive`
- `turnkey-occ db:add-missing-indices`

View File

@ -44,7 +44,9 @@ REBOOT=${REBOOT:=1}
# XXX should we ask??
COLLABORA_OFFICE=${COLLABORA_OFFICE:=1}
NEXTCLOUD_UPGRADE=${NEXTCLOUD_UPGRADE:=1}
# XXX not yet figured out how to do this from CLI...
#NEXTCLOUD_UPGRADE=${NEXTCLOUD_UPGRADE:=1}
readVars
@ -120,12 +122,13 @@ done
/var/www/nextcloud/config/config.php"
# set opcache.interned_strings_buffer...
PHP_VERSION=$(lxc-attach $ID -- php --version \
| sed -ne 's/^PHP \([0-9]\+\.[0-9]\+\).*/\1/p')
PHP_VERSION=$(\
lxc-attach $ID -- php --version \
| sed -ne 's/^PHP \([0-9]\+\.[0-9]\+\).*/\1/p')
@ lxc-attach $ID -- bash -c "\
sed -i \
-e '/opcache.interned_strings_buffer/ a opcache.interned_strings_buffer=32' \
/etc/php/${PHP_VERSION}/cli/php.ini"
/etc/php/${PHP_VERSION}/apache2/php.ini"
# remove /index.php from urls...
# for more info see:
@ -150,11 +153,10 @@ pctPushAssets $ID
# Colabora...
if ! [ -z $COLLABORA_OFFICE ] ; then
echo "# Collabora office..."
# coolwsd...
# XXX still need to make this work through a reverse proxy...
# see:
# https://sdk.collaboraonline.com/docs/installation/Configuration.html
# coolwsd...
@ lxc-attach $ID -- bash -c "\
cd /usr/share/keyrings \
&& wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg"
@ -162,19 +164,17 @@ if ! [ -z $COLLABORA_OFFICE ] ; then
apt update \
&& apt install -y coolwsd code-brand"
# XXX should these be set in here or as args in the coolwsd.service ???
# /etc/coolwsd/coolwsd.xml
# XXX add groups...
# ssl>enable -> false
# ssl>enable -> false
@ lxc-attach $ID -- bash -c "\
sed -i \
'/<ssl /,+5{ s/\(<enable [^>]*>\)true\(<\/enable>\)/\1false\2/ }' \
/etc/coolwsd/coolwsd.xml"
# ssl>termination -> true
# ssl>termination -> true
@ lxc-attach $ID -- bash -c "\
sed -i \
'/<ssl /,+5{ s/\(<termination [^>]*>\)false\(<\/termination>\)/\1true\2/ }' \
/etc/coolwsd/coolwsd.xml"
# alias_groups...
# alias_groups -- allow access both from $APP_PASS and from LAN...
@ lxc-attach $ID -- bash -c "\
sed -i \
-e '/<alias_groups .* mode=\"first\"/ s/mode=\"first\"/mode=\"groups\"/ ' \