浏览代码

Update letsencrypt.sh

FusionPBX 8 年之前
父节点
当前提交
7086f7aff8
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      debian/resources/letsencrypt.sh

+ 7 - 0
debian/resources/letsencrypt.sh

@@ -5,6 +5,8 @@ cd "$(dirname "$0")"
 
 #includes
 . ./config.sh
+. ./colors.sh
+. ./environment.sh
 
 #request the domain and email
 read -p 'Domain Name: ' domain_name
@@ -16,6 +18,11 @@ read -p 'Email Address: ' email_address
 rm -R /opt/letsencrypt
 rm -R /etc/letsencrypt
 
+#use php version 5 for arm
+if [ .$cpu_architecture = .'arm' ]; then
+        php_version=5
+fi
+
 #enable fusionpbx nginx config
 cp nginx/fusionpbx /etc/nginx/sites-available/fusionpbx