diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-02-12 20:04:49 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-13 20:03:56 +0300 |
commit | 34a3bd5d529fc96e4316cdc740a934b7c758e61b (patch) | |
tree | a8540cf5f3ff823359f3ad8c959c7638da9a5f22 /etc/nextcloudpi-config.d | |
parent | c14b05600d0c96e1c1ddbaadbb3ac189e5bf2e57 (diff) |
preactivate useful apps for a selfhosted instancev0.46.8
Diffstat (limited to 'etc/nextcloudpi-config.d')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-init.sh | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/etc/nextcloudpi-config.d/nc-init.sh b/etc/nextcloudpi-config.d/nc-init.sh index 45f43b83..b8474ec3 100644 --- a/etc/nextcloudpi-config.d/nc-init.sh +++ b/etc/nextcloudpi-config.d/nc-init.sh @@ -142,14 +142,19 @@ replace into oc_appconfig values ( 'theming', 'logoMime' , "image/svg+xml" replace into oc_appconfig values ( 'theming', 'backgroundMime', "image/png" ); EOF - # NCP notifications - local URL=$( wget -q -O - https://api.github.com/repos/nextcloud/admin_notifications/releases | \ - grep browser_download_url | head -1 | cut -d '"' -f 4 ) - cd /var/www/nextcloud/apps - wget "$URL" -O admin_notifications.tar.gz - tar -xf admin_notifications.tar.gz - rm *.tar.gz - chown -R www-data:www-data * + # enable some apps by default + sudo -u www-data php /var/www/nextcloud/occ app:install calendar + sudo -u www-data php /var/www/nextcloud/occ app:install contacts + sudo -u www-data php /var/www/nextcloud/occ app:install notes + sudo -u www-data php /var/www/nextcloud/occ app:install tasks + sudo -u www-data php /var/www/nextcloud/occ app:install news + sudo -u www-data php /var/www/nextcloud/occ app:install admin_notifications + + sudo -u www-data php /var/www/nextcloud/occ app:enable calendar + sudo -u www-data php /var/www/nextcloud/occ app:enable contacts + sudo -u www-data php /var/www/nextcloud/occ app:enable notes + sudo -u www-data php /var/www/nextcloud/occ app:enable tasks + sudo -u www-data php /var/www/nextcloud/occ app:enable news sudo -u www-data php /var/www/nextcloud/occ app:enable admin_notifications # other |