mirror of
https://github.com/flynx/proxmox-utils.git
synced 2026-05-18 19:43:10 +00:00
Compare commits
8 Commits
c82b6a23a1
...
0b4a7678ea
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b4a7678ea | |||
| bef23ac6d1 | |||
| 4fc41034e1 | |||
| a4210a6523 | |||
| 91872525ba | |||
| 5fb8b70cdf | |||
| a47f6d7c1e | |||
| 507a418c6c |
@ -1021,6 +1021,10 @@ showNotes(){
|
|||||||
&& ( cat "${BUILD_NOTES}".tpl \
|
&& ( cat "${BUILD_NOTES}".tpl \
|
||||||
| expandPCTTemplate $@ \
|
| expandPCTTemplate $@ \
|
||||||
| tee "${BUILD_NOTES}" )
|
| tee "${BUILD_NOTES}" )
|
||||||
|
[ -e ./POST_INSTALL.md ] \
|
||||||
|
&& echo "####" \
|
||||||
|
&& cat ./POST_INSTALL.md \
|
||||||
|
| sed 's/^/## /'
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
14
nextcloud/POST_INSTALL.md
Normal file
14
nextcloud/POST_INSTALL.md
Normal 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`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -44,7 +44,9 @@ REBOOT=${REBOOT:=1}
|
|||||||
|
|
||||||
# XXX should we ask??
|
# XXX should we ask??
|
||||||
COLLABORA_OFFICE=${COLLABORA_OFFICE:=1}
|
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
|
readVars
|
||||||
|
|
||||||
@ -120,12 +122,13 @@ done
|
|||||||
/var/www/nextcloud/config/config.php"
|
/var/www/nextcloud/config/config.php"
|
||||||
|
|
||||||
# set opcache.interned_strings_buffer...
|
# set opcache.interned_strings_buffer...
|
||||||
PHP_VERSION=$(lxc-attach $ID -- php --version \
|
PHP_VERSION=$(\
|
||||||
| sed -ne 's/^PHP \([0-9]\+\.[0-9]\+\).*/\1/p')
|
lxc-attach $ID -- php --version \
|
||||||
|
| sed -ne 's/^PHP \([0-9]\+\.[0-9]\+\).*/\1/p')
|
||||||
@ lxc-attach $ID -- bash -c "\
|
@ lxc-attach $ID -- bash -c "\
|
||||||
sed -i \
|
sed -i \
|
||||||
-e '/opcache.interned_strings_buffer/ a opcache.interned_strings_buffer=32' \
|
-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...
|
# remove /index.php from urls...
|
||||||
# for more info see:
|
# for more info see:
|
||||||
@ -150,11 +153,10 @@ pctPushAssets $ID
|
|||||||
# Colabora...
|
# Colabora...
|
||||||
if ! [ -z $COLLABORA_OFFICE ] ; then
|
if ! [ -z $COLLABORA_OFFICE ] ; then
|
||||||
echo "# Collabora office..."
|
echo "# Collabora office..."
|
||||||
|
|
||||||
# coolwsd...
|
|
||||||
# XXX still need to make this work through a reverse proxy...
|
|
||||||
# see:
|
# see:
|
||||||
# https://sdk.collaboraonline.com/docs/installation/Configuration.html
|
# https://sdk.collaboraonline.com/docs/installation/Configuration.html
|
||||||
|
|
||||||
|
# coolwsd...
|
||||||
@ lxc-attach $ID -- bash -c "\
|
@ lxc-attach $ID -- bash -c "\
|
||||||
cd /usr/share/keyrings \
|
cd /usr/share/keyrings \
|
||||||
&& wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg"
|
&& wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg"
|
||||||
@ -162,19 +164,17 @@ if ! [ -z $COLLABORA_OFFICE ] ; then
|
|||||||
apt update \
|
apt update \
|
||||||
&& apt install -y coolwsd code-brand"
|
&& apt install -y coolwsd code-brand"
|
||||||
# XXX should these be set in here or as args in the coolwsd.service ???
|
# XXX should these be set in here or as args in the coolwsd.service ???
|
||||||
# /etc/coolwsd/coolwsd.xml
|
# ssl>enable -> false
|
||||||
# XXX add groups...
|
|
||||||
# ssl>enable -> false
|
|
||||||
@ lxc-attach $ID -- bash -c "\
|
@ lxc-attach $ID -- bash -c "\
|
||||||
sed -i \
|
sed -i \
|
||||||
'/<ssl /,+5{ s/\(<enable [^>]*>\)true\(<\/enable>\)/\1false\2/ }' \
|
'/<ssl /,+5{ s/\(<enable [^>]*>\)true\(<\/enable>\)/\1false\2/ }' \
|
||||||
/etc/coolwsd/coolwsd.xml"
|
/etc/coolwsd/coolwsd.xml"
|
||||||
# ssl>termination -> true
|
# ssl>termination -> true
|
||||||
@ lxc-attach $ID -- bash -c "\
|
@ lxc-attach $ID -- bash -c "\
|
||||||
sed -i \
|
sed -i \
|
||||||
'/<ssl /,+5{ s/\(<termination [^>]*>\)false\(<\/termination>\)/\1true\2/ }' \
|
'/<ssl /,+5{ s/\(<termination [^>]*>\)false\(<\/termination>\)/\1true\2/ }' \
|
||||||
/etc/coolwsd/coolwsd.xml"
|
/etc/coolwsd/coolwsd.xml"
|
||||||
# alias_groups...
|
# alias_groups -- allow access both from $APP_PASS and from LAN...
|
||||||
@ lxc-attach $ID -- bash -c "\
|
@ lxc-attach $ID -- bash -c "\
|
||||||
sed -i \
|
sed -i \
|
||||||
-e '/<alias_groups .* mode=\"first\"/ s/mode=\"first\"/mode=\"groups\"/ ' \
|
-e '/<alias_groups .* mode=\"first\"/ s/mode=\"first\"/mode=\"groups\"/ ' \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user