diff options
author | Daniel Hansson <daniel@techandme.se> | 2017-06-11 16:13:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-11 16:13:07 +0300 |
commit | 7fbf0920a613089e2d60914fb2e5d51a0c2bd41f (patch) | |
tree | 09ed21097082c51ad927aa52dccd16b4d79cbf68 /apps | |
parent | e7f6477af569af738a366e2ac555a5d4145f5354 (diff) |
set www-data permissions (#261)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar.sh | 1 | ||||
-rw-r--r-- | apps/contacts.sh | 1 | ||||
-rw-r--r-- | apps/nextant.sh | 5 | ||||
-rw-r--r-- | apps/passman.sh | 1 | ||||
-rw-r--r-- | apps/previewgenerator.sh | 1 | ||||
-rw-r--r-- | apps/spreedme.sh | 1 |
6 files changed, 7 insertions, 3 deletions
diff --git a/apps/calendar.sh b/apps/calendar.sh index d3b6a5c0..8c493323 100644 --- a/apps/calendar.sh +++ b/apps/calendar.sh @@ -28,4 +28,5 @@ fi if [ -d "$NCPATH"/apps/calendar ] then sudo -u www-data php "$NCPATH"/occ app:enable calendar + chown -R www-data:www-data $NCPATH/apps fi diff --git a/apps/contacts.sh b/apps/contacts.sh index 18db8b34..c7e00198 100644 --- a/apps/contacts.sh +++ b/apps/contacts.sh @@ -28,4 +28,5 @@ fi if [ -d "$NCPATH"/apps/contacts ] then sudo -u www-data php "$NCPATH"/occ app:enable contacts + chown -R www-data:www-data $NCPATH/apps fi diff --git a/apps/nextant.sh b/apps/nextant.sh index 0067250d..5d05e95e 100644 --- a/apps/nextant.sh +++ b/apps/nextant.sh @@ -97,11 +97,10 @@ check_command wget -q -P "$NC_APPS_PATH" "$NT_DL" check_command cd "$NC_APPS_PATH" check_command tar zxf "$NT_RELEASE" -# Set secure permissions -run_static_script setup_secure_permissions_nextcloud - # Enable Nextant rm -r "$NT_RELEASE" check_command sudo -u www-data php $NCPATH/occ app:enable nextant +chown -R www-data:www-data $NCPATH/apps check_command sudo -u www-data php $NCPATH/occ nextant:test http://127.0.0.1:8983/solr/ nextant --save check_command sudo -u www-data php $NCPATH/occ nextant:index + diff --git a/apps/passman.sh b/apps/passman.sh index 3131765c..b066e989 100644 --- a/apps/passman.sh +++ b/apps/passman.sh @@ -62,5 +62,6 @@ fi if [ -d $NCPATH/apps/passman ] then check_command sudo -u www-data php $NCPATH/occ app:enable passman + chown -R www-data:www-data $NCPATH/apps sleep 2 fi diff --git a/apps/previewgenerator.sh b/apps/previewgenerator.sh index 1025ddb3..8a52d5c4 100644 --- a/apps/previewgenerator.sh +++ b/apps/previewgenerator.sh @@ -28,6 +28,7 @@ fi if [ -d "$NCPATH"/apps/previewgenerator ] then sudo -u www-data php "$NCPATH"/occ app:enable previewgenerator + chown -R www-data:www-data $NCPATH/apps crontab -u www-data -l | { cat; echo "@daily php -f $NCPATH/occ preview:pre-generate >> /var/log/previewgenerator.log"; } | crontab -u www-data - sudo -u www-data php "$NCPATH"/occ preview:generate-all fi diff --git a/apps/spreedme.sh b/apps/spreedme.sh index 6908fa71..bb15575b 100644 --- a/apps/spreedme.sh +++ b/apps/spreedme.sh @@ -66,6 +66,7 @@ else mv "nextcloud-spreedme-$SPREEDME_VER" spreedme fi check_command sudo -u www-data php "$NCPATH/occ" app:enable spreedme +chown -R www-data:www-data $NCPATH/apps # Generate secret keys SHAREDSECRET=$(openssl rand -hex 32) |