Check that nextcloud encryption gets enabled

This commit is contained in:
Bob Mottram 2017-11-01 10:45:19 +00:00
parent e97168728b
commit 6e64539c93
1 changed files with 5 additions and 0 deletions

View File

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