|
|
@ -16,7 +16,20 @@ compose --no-relations --no-init \ |
|
|
|
config:system:set onlyoffice DocumentServerInternalUrl --value="http://$MASTER_BASE_SERVICE_NAME/" \; \ |
|
|
|
config:system:set onlyoffice StorageUrl --value="http://$MASTER_TARGET_SERVICE_NAME/" \; \ |
|
|
|
config:app:set onlyoffice jwt_secret --value="$KEY" \; \ |
|
|
|
config:system:set allow_local_remote_servers --type=boolean --value=true |
|
|
|
config:system:set allow_local_remote_servers --type=boolean --value=true \; \ |
|
|
|
app:enable onlyoffice |
|
|
|
|
|
|
|
## Got: |
|
|
|
# $ ./occ app:enable onlyoffice |
|
|
|
# App "ONLYOFFICE" cannot be installed because it is not compatible with this version of the server. |
|
|
|
# |
|
|
|
## Should |
|
|
|
# $ ./occ app:update onlyoffice |
|
|
|
# onlyoffice new version available: 7.5.4 |
|
|
|
# Error: Database error when running migration 070400Date20220607111111 for app onlyoffice |
|
|
|
# An exception occurred while executing a query: SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation "share_id_index" already exists |
|
|
|
# |
|
|
|
## Then patch it, and re-update (no error should be done) |
|
|
|
|
|
|
|
|
|
|
|
if [ -e "$DATASTORE"/"$TARGET_SERVICE_NAME/var/www/html/custom_apps/onlyoffice/lib/Migration/Version070400Date20220607111111.php" ]; then |
|
|
|