Changeset 2336
- Timestamp:
- 10/07/08 19:21:18 (1 month ago)
- Files:
-
- alternc/trunk/debian/alternc-slave.postinst (modified) (1 diff)
- alternc/trunk/debian/alternc.postinst (modified) (1 diff)
- alternc/trunk/install/alternc.install (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/debian/alternc-slave.postinst
r2335 r2336 167 167 echo "running alternc.install" 168 168 alternc.install 169 170 if [ -x /usr/sbin/apache ]; then171 if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ] && [ -e /etc/apache-ssl/conf.d/ ]; then172 ln -sf /etc/alternc/apache-ssl.conf \173 /etc/apache-ssl/conf.d/alternc.conf174 fi175 176 if [ ! -h /etc/apache/conf.d/alternc.conf ] && [ -e /etc/apache/conf.d/ ]; then177 ln -sf /etc/alternc/apache.conf \178 /etc/apache/conf.d/alternc.conf179 fi180 181 if [ ! -h /etc/apache/conf.d/override_php.conf ] && [ -e /etc/apache/conf.d/ ]; then182 ln -sf /var/alternc/apacheconf/override_php.conf \183 /etc/apache/conf.d/override_php.conf184 fi185 fi186 if [ -x /usr/sbin/apache2 ]; then187 if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then188 ln -sf /etc/alternc/apache2.conf \189 /etc/apache2/conf.d/alternc.conf190 fi191 if [ ! -h /etc/apache2/conf.d/override_php.conf ] && [ -e /etc/apache2/conf.d/ ]; then192 ln -sf /var/alternc/apacheconf/override_php.conf \193 /etc/apache2/conf.d/override_php.conf194 fi195 196 fi197 169 ;; 198 170 alternc/trunk/debian/alternc.postinst
r2335 r2336 200 200 /usr/lib/alternc/basedir_prot.sh 201 201 202 if [ -x /usr/sbin/apache ]; then203 if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ] && [ -e /etc/apache-ssl/conf.d/ ]; then204 ln -sf /etc/alternc/apache-ssl.conf \205 /etc/apache-ssl/conf.d/alternc.conf206 fi207 208 if [ ! -h /etc/apache/conf.d/alternc.conf ] && [ -e /etc/apache/conf.d/ ]; then209 ln -sf /etc/alternc/apache.conf \210 /etc/apache/conf.d/alternc.conf211 fi212 213 if [ ! -h /etc/apache/conf.d/override_php.conf ] && [ -e /etc/apache/conf.d/ ]; then214 ln -sf /var/alternc/apacheconf/override_php.conf \215 /etc/apache/conf.d/override_php.conf216 fi217 fi218 if [ -x /usr/sbin/apache2 ]; then219 if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then220 ln -sf /etc/alternc/apache2.conf \221 /etc/apache2/conf.d/alternc.conf222 fi223 if [ ! -h /etc/apache2/conf.d/override_php.conf ] && [ -e /etc/apache2/conf.d/ ]; then224 ln -sf /var/alternc/apacheconf/override_php.conf \225 /etc/apache2/conf.d/override_php.conf226 fi227 228 fi229 202 ;; 230 203 alternc/trunk/install/alternc.install
r2328 r2336 189 189 echo "LoadModule ${php}_module /usr/lib/apache/1.3/lib${php}.so" | append_no_dupe /etc/apache/modules.conf 190 190 echo "LoadModule ${php}_module /usr/lib/apache/1.3/lib${php}.so" | append_no_dupe /etc/apache-ssl/modules.conf 191 192 if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ] && [ -e /etc/apache-ssl/conf.d/ ]; then 193 ln -sf /etc/alternc/apache-ssl.conf /etc/apache-ssl/conf.d/alternc.conf 194 fi 195 196 if [ ! -h /etc/apache/conf.d/alternc.conf ] && [ -e /etc/apache/conf.d/ ]; then 197 ln -sf /etc/alternc/apache.conf /etc/apache/conf.d/alternc.conf 198 fi 199 200 if [ ! -h /etc/apache/conf.d/override_php.conf ] && [ -e /etc/apache/conf.d/ ]; then 201 ln -sf /var/alternc/apacheconf/override_php.conf /etc/apache/conf.d/override_php.conf 202 fi 191 203 SERVICES="$SERVICES apache apache-ssl" 192 204 fi 193 if [ -x /usr/sbin/apache2 ] && ! ( [ -L /etc/apache2/mods-enabled/vhost_alias.load ] && [ -L /etc/apache2/mods-enabled/$php.load ] ) 194 then 195 a2enmod vhost_alias 196 a2enmod $php 197 SERVICES="$SERVICES apache2" 205 if [ -x /usr/sbin/apache2 ]; then 206 s="" 207 if ! ( [ -L /etc/apache2/mods-enabled/vhost_alias.load ] && [ -L /etc/apache2/mods-enabled/$php.load ] ) 208 then 209 a2enmod vhost_alias 210 a2enmod $php 211 s="apache2" 212 fi 213 if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then 214 ln -sf /etc/alternc/apache2.conf /etc/apache2/conf.d/alternc.conf 215 s="apache2" 216 fi 217 if [ ! -h /etc/apache2/conf.d/override_php.conf ] && [ -e /etc/apache2/conf.d/ ]; then 218 ln -sf /var/alternc/apacheconf/override_php.conf /etc/apache2/conf.d/override_php.conf 219 s="apache2" 220 fi 221 SERVICES="$SERVICES $s" 198 222 fi 199 223
