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

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@techandme.se>2018-08-13 19:31:57 +0300
committerGitHub <noreply@github.com>2018-08-13 19:31:57 +0300
commit6e93b3bbd99a8618a59e7c6379b2a9ab195cad04 (patch)
tree4925f6b098da186def95966c108fbc02b982b005 /lets-encrypt
parentf06ab42fa1354fcc2463f4c49b196db506c5344e (diff)
not compatible with
Diffstat (limited to 'lets-encrypt')
-rw-r--r--lets-encrypt/activate-ssl.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/lets-encrypt/activate-ssl.sh b/lets-encrypt/activate-ssl.sh
index 795976c1..e8a9dfad 100644
--- a/lets-encrypt/activate-ssl.sh
+++ b/lets-encrypt/activate-ssl.sh
@@ -15,6 +15,22 @@ debug_mode
# Check if root
root_check
+# You can't run the script if you are not using PHP-FPM
+if [ -f "$PHP_POOL_DIR"/nextcloud.conf ]
+then
+ sleep 0.1
+elif dpkg -s php7.2-fpm | grep "Status: install ok installed" & >/dev/null
+then
+ sleep 0.1
+elif dpkg -s php-fpm | grep "Status: install ok installed" & > /dev/null
+then
+ sleep 0.1
+else
+msg_box "You can't use this script without PHP-FPM at the moment, we are working on a fix to make it backwards compatible.
+
+Thank you for understanding."
+fi
+
# Information
msg_box "Important! Please read this: