Changeset 853 for trunk/Install/deb/debian/postinst
- Timestamp:
- Mar 18, 2018, 12:03:56 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Install/deb/debian/postinst
r850 r853 1 1 #!/bin/sh 2 # postinst script for centrala2 # postinst script for isp-central 3 3 4 4 apache_install() { 5 5 mkdir -p /etc/apache2/conf-available 6 ln -sf ../../ centrala/apache.conf /etc/apache2/conf-available/centrala.conf6 ln -sf ../../isp-central/apache.conf /etc/apache2/conf-available/isp-central.conf 7 7 8 8 COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true) … … 10 10 if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then 11 11 . /usr/share/apache2/apache2-maintscript-helper 12 apache2_invoke enconf centrala12 apache2_invoke enconf isp-central 13 13 elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then 14 [ -d /etc/apache2/conf.d/ ] && [ ! -L /etc/apache2/conf.d/ centrala.conf ] && ln -s ../conf-available/centrala.conf /etc/apache2/conf.d/centrala.conf14 [ -d /etc/apache2/conf.d/ ] && [ ! -L /etc/apache2/conf.d/isp-central.conf ] && ln -s ../conf-available/isp-central.conf /etc/apache2/conf.d/isp-central.conf 15 15 fi 16 16 }
Note:
See TracChangeset
for help on using the changeset viewer.