diff options
author | Daniel Hansson <daniel@techandme.se> | 2017-08-20 23:56:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-20 23:56:51 +0300 |
commit | cfce35c43bcdf75d9fea71c54d237981973bef51 (patch) | |
tree | 350161de4cdc6544af1ff5b9515b7d31628de66b /apps | |
parent | c8a968d45885e4cfdf9e8c7c0dfb54f74c0dc89a (diff) |
run with www-data user (#342)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/collabora.sh | 2 | ||||
-rw-r--r-- | apps/onlyoffice.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/collabora.sh b/apps/collabora.sh index c70b01b6..dee3cde5 100644 --- a/apps/collabora.sh +++ b/apps/collabora.sh @@ -296,7 +296,7 @@ then check_command sudo -u www-data php "$NCPATH"/occ app:enable richdocuments check_command sudo -u www-data "$NCPATH"/occ config:app:set richdocuments wopi_url --value="https://$SUBDOMAIN" chown -R www-data:www-data $NCPATH/apps - sudo "$NCPATH"/occ config:system:set trusted_domains 3 --value="$SUBDOMAIN" + check_command sudo -u www-data php "$NCPATH"/occ config:system:set trusted_domains 3 --value="$SUBDOMAIN" # Add prune command { echo "#!/bin/bash" diff --git a/apps/onlyoffice.sh b/apps/onlyoffice.sh index 72c3a780..98b8d002 100644 --- a/apps/onlyoffice.sh +++ b/apps/onlyoffice.sh @@ -284,7 +284,7 @@ then check_command sudo -u www-data php "$NCPATH"/occ app:enable onlyoffice check_command sudo -u www-data php "$NCPATH"/occ config:app:set onlyoffice DocumentServerUrl --value="https://$SUBDOMAIN/" chown -R www-data:www-data $NCPATH/apps - sudo "$NCPATH"/occ config:system:set trusted_domains 3 --value="$SUBDOMAIN" + check_command sudo -u www-data php "$NCPATH"/occ config:system:set trusted_domains 3 --value="$SUBDOMAIN" # Add prune command { echo "#!/bin/bash" |