Changeset 2291

Show
Ignore:
Timestamp:
10/04/08 18:48:30 (2 months ago)
Author:
anarcat
Message:

move /var/alternc-specific commands from alternc.install to postinst

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/debian/postinst

    r2259 r2291  
    158158    fi 
    159159 
     160    # /var/alternc/dns/d/www.example.com 
     161    FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`" 
     162    if [ "$FQDN_LETTER" = "$FQDN" ] 
     163    then 
     164           FQDN_LETTER="_" 
     165    fi 
     166 
    160167    # Erase all apacheconf file 
    161168    # They will be regenerated without the bug by upgrade_check.sh below. 
     
    175182    fi 
    176183 
     184    # Add access to the management panel 
     185    ln -nsf /var/alternc/bureau /var/alternc/dns/$FQDN_LETTER/$FQDN 
     186 
     187    # Bind stuff 
     188    touch /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf 
     189    chown root:bind /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf 
     190    chmod 640 /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf 
     191    touch /var/run/alternc/refresh_slave 
     192    /usr/lib/alternc/slave_dns 
     193    # Apache will not start without this file 
     194    touch /var/alternc/apacheconf/override_php.conf 
     195 
     196    # Update l18n files 
     197    /usr/share/alternc/install/dopo.sh 
     198 
    177199    # important: postinst gele sans ca 
    178200    db_stop 
  • alternc/trunk/install/alternc.install

    r2260 r2291  
    182182# Ad-hoc fixes 
    183183# 
    184 # Add access to the management panel 
    185 ln -nsf /var/alternc/bureau /var/alternc/dns/$FQDN_LETTER/$FQDN 
    186  
    187 # Update l18n files 
    188 /usr/share/alternc/install/dopo.sh 
    189  
    190 # Bind stuff 
    191 touch /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf 
    192 chown root:bind /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf 
    193 chmod 640 /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf  
    194 touch /var/run/alternc/refresh_slave 
    195 /usr/lib/alternc/slave_dns 
    196  
    197 # Apache will not start without this file 
    198 touch /var/alternc/apacheconf/override_php.conf 
     184 
    199185php="`ls /usr/lib/apache*/*/*php*.so | sed -e 's/^.*libphp\(.\)\.so$/php\1/' | tail -1`" 
    200186if [ -x /usr/sbin/apache ]