Changeset 219 for debian/postinst


Ignore:
Timestamp:
02/21/06 23:51:56 (8 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2004-05-19 05:06:03 by anonymous]
déplacer une bonne partie de la gestion des permissions de
alternc.install vers le fichier debian/rules

Original author: anonymous
Date: 2004-05-19 05:06:04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    r136 r219  
    6060        # Now substitute it on the conf file ;)  
    6161        cat /etc/alternc/alternc.conf | sed -e "s/^myip=.*/myip=$myip/" | sed -e "s/^fqdn=.*/fqdn=$fqdn/" | sed -e "s/^mx=.*/mx=$mx/" | sed -e "s/^DATA_PART=.*/DATA_PART=$DATA_PART/" | sed -e "s/^dbpwd=.*/dbpwd=$dbpwd/" | sed -e "s/^myrandom=.*/myrandom=$myrandom/" | sed -e "s/^ldap_userpwd=.*/ldap_userpwd=$ldap_userpwd/" | sed -e "s/^ldap_rootpwd=.*/ldap_rootpwd=$ldap_rootpwd/" >/etc/alternc/alternc.conf.new 
    62         rm /etc/alternc/alternc.conf 
    63         mv /etc/alternc/alternc.conf.new /etc/alternc/alternc.conf 
     62        cp /etc/alternc/alternc.conf.new /etc/alternc/alternc.conf 
     63        rm /etc/alternc/alternc.conf.new 
    6464    fi 
    6565 
Note: See TracChangeset for help on using the changeset viewer.