diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-05-04 03:04:43 +0300 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-05-05 19:04:32 +0300 |
| commit | fbbc08b49469b57d6cdee9fcfb81b6eef309ab95 (patch) | |
| tree | 847520fb3fc77d35d7c3b2a7d0098cefcdfb492f | |
| parent | 949853065506213554a51599c843ebc448555d2f (diff) | |
debian/postinst: enable apache module only when needed
| -rw-r--r-- | res/debian/pkg__rhizi-mux/postinst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/res/debian/pkg__rhizi-mux/postinst b/res/debian/pkg__rhizi-mux/postinst index 44b87c5f..a65955fa 100644 --- a/res/debian/pkg__rhizi-mux/postinst +++ b/res/debian/pkg__rhizi-mux/postinst @@ -27,11 +27,12 @@ case "$1" in # configure apache - FIXME: impl undo echo 'enabling apache proxy modules - warning: this will not be reverted during package uninstall' - /usr/sbin/a2enmod deflate - /usr/sbin/a2enmod proxy - /usr/sbin/a2enmod proxy_http - /usr/sbin/a2enmod proxy_wstunnel - /usr/sbin/a2enmod rewrite + apache_mod_e_dir=/etc/apache2/mods-enabled + [ ! -e ${apache_mod_e_dir}/deflate.load ] && /usr/sbin/a2enmod deflate + [ ! -e ${apache_mod_e_dir}/proxy.load ] && /usr/sbin/a2enmod proxy + [ ! -e ${apache_mod_e_dir}/proxy_http.load ] && /usr/sbin/a2enmod proxy_http + [ ! -e ${apache_mod_e_dir}/proxy_wstunnel.load ] && /usr/sbin/a2enmod proxy_wstunnel + [ ! -e ${apache_mod_e_dir}/rewrite.load ] && /usr/sbin/a2enmod rewrite ;; |
