Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp-provisioning.sh')
-rw-r--r--bin/ncp-provisioning.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ncp-provisioning.sh b/bin/ncp-provisioning.sh
index cda1c70c..68b12df1 100644
--- a/bin/ncp-provisioning.sh
+++ b/bin/ncp-provisioning.sh
@@ -64,4 +64,12 @@ BKP="$( ls -1t /var/www/nextcloud-bkp_*.tar.gz 2>/dev/null | head -1 )"
ncp-restore "$BKP_NEW" && rm "$BKP_NEW"
}
+## Check for encrypted data and ask for password
+if needs_decrypt; then
+ echo "Detected encrypted instance"
+ a2dissite ncp nextcloud
+ a2ensite ncp-activation
+ apache2ctl -k graceful
+fi
+
exit 0