Changeset 219


Ignore:
Timestamp:
02/21/06 23:51:56 (7 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

Files:
3 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 
  • debian/rules

    r218 r219  
    4444        dh_installdirs 
    4545 
     46# default perms that should be used 
     47# usr/lib/alternc/* root.www-data 750 
     48# etc/alternc/* root.root 750 
    4649 
    4750        # Add here commands to install the package into debian/tmp. 
    4851        # conffiles 
    49         install -o root -g www-data -m750 \ 
     52        install -o root -g www-data -m0750 -d debian/tmp/etc/alternc 
     53        install -o root -g www-data -m0750 \ 
    5054                install/etc/alternc/alternc.conf debian/tmp/etc/alternc/ 
    51         install -o root -g root -m755 \ 
     55        install -o www-data -g www-data -d debian/tmp/etc/webalizer 
     56        install -o www-data -g www-data -m0755 \ 
    5257                install/etc/webalizer/template.conf debian/tmp/etc/webalizer/ 
    5358        # les scripts d'install 
     
    104109        dh_link 
    105110        dh_compress 
    106         dh_fixperms 
     111#we handle our own perms 
     112#       dh_fixperms 
    107113 
    108114 
  • install/scripts/alternc.install

    r190 r219  
    378378# 11.5 setup permissions for scripts and configs 
    379379system("chmod a+x /etc/init.d/iptables"); 
    380 system("chmod 750 /etc/alternc -R"); 
    381 system("chown root.root /etc/alternc -R"); 
    382 system("mkdir /var/run/alternc"); 
    383 system("mkdir /var/log/alternc"); 
    384 system("chown www-data.www-data /var/alternc/bureau/admin/webmail/.htaccess /etc/webalizer /var/alternc/bureau /var/alternc/html /var/alternc/mail /var/alternc/dns /var/run/alternc /var/log/alternc -R"); 
    385 system("chown root.www-data /usr/lib/alternc/ -R"); 
    386 system("chmod 0750 /usr/lib/alternc"); 
    387 system("chmod 0750 /usr/lib/alternc/*"); 
    388 system("chmod 4750 /usr/lib/alternc/mem_add"); 
    389 system("chmod 4750 /usr/lib/alternc/quota_edit"); 
    390 system("chmod 4750 /usr/lib/alternc/quota_get"); 
    391 system("chmod 4750 /usr/lib/alternc/mail_add"); 
    392 system("chmod 4750 /usr/lib/alternc/mail_del"); 
    393 system("chmod 4750 /usr/lib/alternc/mem_del"); 
    394 system("chmod 4750 /usr/lib/alternc/db_create"); 
     380system("chown www-data.www-data /var/alternc/bureau/admin/webmail/.htaccess /var/alternc/bureau /var/alternc/html /var/alternc/mail /var/alternc/dns /var/run/alternc /var/log/alternc -R"); 
    395381system("chmod 0640 /var/alternc/bureau/class/*.php"); 
    396382system("chown root.www-data /var/alternc/bureau/class/*.php"); 
    397383system("chown root.www-data /var/alternc/bureau/class"); 
    398 system("chgrp www-data /etc/alternc"); 
    399384system("chgrp www-data /etc/alternc/local.sh"); 
    400385system("chgrp www-data /etc/alternc/sendmail"); 
Note: See TracChangeset for help on using the changeset viewer.