Browse Source

Check that nextcloud encryption gets enabled

Bob Mottram 7 years ago
parent
commit
6e64539c93
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/freedombone-app-nextcloud

+ 5
- 0
src/freedombone-app-nextcloud View File

@@ -686,6 +686,11 @@ function install_nextcloud_main {
686 686
     ./occ status
687 687
     ./occ app:list
688 688
     ./occ app:enable encryption
689
+    ./occ encryption:enable
690
+    if [ ! "$?" = "0" ]; then
691
+        echo $'Encryption not enabled'
692
+        exit 73527
693
+    fi
689 694
     ./occ config:system:set appstoreenabled --value=false
690 695
     chmod g+w /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/config/config.php
691 696
     chown -R www-data:www-data /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs