Browse Source

Allow to enforce Apache via debconf

Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
master
Jonas Rittershofer 4 years ago
parent
commit
6f9e65d348
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      debian/jitsi-meet-web-config.postinst

+ 6
- 0
debian/jitsi-meet-web-config.postinst View File

68
         if [ "$APACHE_INSTALL_CHECK" = "installed" ] || [ "$APACHE_INSTALL_CHECK" = "unpacked" ] ; then
68
         if [ "$APACHE_INSTALL_CHECK" = "installed" ] || [ "$APACHE_INSTALL_CHECK" = "unpacked" ] ; then
69
             FORCE_APACHE="true"
69
             FORCE_APACHE="true"
70
         fi
70
         fi
71
+        # In case user enforces apache and if apache is available, unset nginx.
72
+        db_get jitsi-meet/enforce_apache
73
+        if [ -n "$RET" ] && [ "$RET" = "true" ] \
74
+            && [ "$FORCE_APACHE" = "true" ]; then
75
+            FORCE_NGINX="false"
76
+        fi
71
 
77
 
72
         UPLOADED_CERT_CHOICE="I want to use my own certificate"
78
         UPLOADED_CERT_CHOICE="I want to use my own certificate"
73
         # if first time config ask for certs, or if we are reconfiguring
79
         # if first time config ask for certs, or if we are reconfiguring

Loading…
Cancel
Save