diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-11-12 11:11:28 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-11-12 12:09:33 +0300 |
commit | 88815bb2945d4b4fefe23fce61858fa8e7357199 (patch) | |
tree | 6c86bfac1383a718d94cec84bda19d093fa10d33 | |
parent | c2143b9049fa1364858e6ec75ab57d1eb3eb0fc5 (diff) |
nc-init: install notificationsv0.34.8
-rw-r--r-- | etc/nextcloudpi-config.d/nc-init.sh | 12 | ||||
-rw-r--r-- | etc/nextcloudpi-config.d/nc-notify-updates.sh | 10 |
2 files changed, 11 insertions, 11 deletions
diff --git a/etc/nextcloudpi-config.d/nc-init.sh b/etc/nextcloudpi-config.d/nc-init.sh index fb58a25f..5aefc601 100644 --- a/etc/nextcloudpi-config.d/nc-init.sh +++ b/etc/nextcloudpi-config.d/nc-init.sh @@ -111,8 +111,18 @@ replace into oc_appconfig values ( 'theming', 'logoMime', "image/svg+xml" ); replace into oc_appconfig values ( 'theming', 'backgroundMime', "image/png" ); EOF + # NCP notifications + local URL=$( curl -s 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 * + sudo -u www-data php /var/www/nextcloud/occ app:enable admin_notifications + # other - sudo -u www-data php occ config:system:set overwriteprotocol --value=https + sudo -u www-data php /var/www/nextcloud/occ config:system:set overwriteprotocol --value=https echo "NC init done" } diff --git a/etc/nextcloudpi-config.d/nc-notify-updates.sh b/etc/nextcloudpi-config.d/nc-notify-updates.sh index 50ff3d6c..4e1288c7 100644 --- a/etc/nextcloudpi-config.d/nc-notify-updates.sh +++ b/etc/nextcloudpi-config.d/nc-notify-updates.sh @@ -22,16 +22,6 @@ NCDIR=/var/www/nextcloud install() { - # install app - local URL=$( curl -s 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 * - sudo -u www-data php /var/www/nextcloud/occ app:enable admin_notifications - # timers cat > /etc/systemd/system/nc-notify-updates.service <<EOF [Unit] |