Changeset 1934
- Timestamp:
- 09/09/07 22:31:35 (1 year ago)
- Files:
-
- alternc/trunk/debian/postinst (modified) (1 diff)
- alternc/trunk/install/alternc.install (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/debian/postinst
r1778 r1934 158 158 alternc.install 159 159 160 if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then 161 ln -sf /etc/alternc/apache-ssl.conf \ 162 /etc/apache-ssl/conf.d/alternc.conf 163 fi 164 165 if [ ! -h /etc/apache/conf.d/alternc.conf ]; then 166 ln -sf /etc/alternc/apache.conf \ 167 /etc/apache/conf.d/alternc.conf 168 fi 169 170 if [ ! -h /etc/apache/conf.d/override_php.conf ]; then 171 ln -sf /var/alternc/apacheconf/override_php.conf \ 172 /etc/apache/conf.d/override_php.conf 173 fi 174 160 if [ -x /usr/sbin/apache ]; then 161 if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then 162 ln -sf /etc/alternc/apache-ssl.conf \ 163 /etc/apache-ssl/conf.d/alternc.conf 164 fi 165 166 if [ ! -h /etc/apache/conf.d/alternc.conf ]; then 167 ln -sf /etc/alternc/apache.conf \ 168 /etc/apache/conf.d/alternc.conf 169 fi 170 171 if [ ! -h /etc/apache/conf.d/override_php.conf ]; then 172 ln -sf /var/alternc/apacheconf/override_php.conf \ 173 /etc/apache/conf.d/override_php.conf 174 fi 175 fi 176 if [ -x /usr/sbin/apache2 ]; then 177 if [ ! -h /etc/apache2/conf.d/alternc.conf ]; then 178 ln -sf /etc/alternc/apache.conf \ 179 /etc/apache/conf.d/alternc.conf 180 fi 181 if [ ! -h /etc/apache2/conf.d/override_php.conf ]; then 182 ln -sf /var/alternc/apacheconf/override_php.conf \ 183 /etc/apache/conf.d/override_php.conf 184 fi 185 186 fi 175 187 ;; 176 188 alternc/trunk/install/alternc.install
r1929 r1934 181 181 # Apache will not start without this file 182 182 touch /var/alternc/apacheconf/override_php.conf 183 php=`dpkg -l libapache -mod-php* | grep ^ii | sed -e 's/^.*libapache.\?-mod-php\(.\).*$/php\1/' | tail -1`183 php=`dpkg -l libapache*-mod-php* | grep ^ii | sed -e 's/^.*libapache.\?-mod-php\(.\).*$/php\1/' | tail -1` 184 184 if [ -x /usr/sbin/apache ] 185 185 then … … 191 191 echo "LoadModule $php_module /usr/lib/apache/1.3/lib$php.so" | append_no_dupe /etc/apache/modules.conf 192 192 echo "LoadModule $php_module /usr/lib/apache/1.3/lib$php.so" | append_no_dupe /etc/apache-ssl/modules.conf 193 SERVICES="$SERVICES apache apache-ssl" 193 194 fi 194 195 if [ -x /usr/sbin/apache2 ] … … 196 197 a2enmod vhost_alias 197 198 a2enmod $php 199 SERVICES="$SERVICES apache2" 198 200 fi 199 201 … … 248 250 # Reload services 249 251 # 250 for service in apache apache-sslpostfix bind9 courier-authdaemon \252 for service in $SERVICES postfix bind9 courier-authdaemon \ 251 253 courier-imap courier-imap-ssl courier-pop courier-pop-ssl \ 252 254 cron proftpd; do
