Changeset 219
- Timestamp:
- 02/21/06 23:51:56 (7 years ago)
- Files:
-
- 3 edited
-
debian/postinst (modified) (1 diff)
-
debian/rules (modified) (2 diffs)
-
install/scripts/alternc.install (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
debian/postinst
r136 r219 60 60 # Now substitute it on the conf file ;) 61 61 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.conf63 mv /etc/alternc/alternc.conf.new /etc/alternc/alternc.conf62 cp /etc/alternc/alternc.conf.new /etc/alternc/alternc.conf 63 rm /etc/alternc/alternc.conf.new 64 64 fi 65 65 -
debian/rules
r218 r219 44 44 dh_installdirs 45 45 46 # default perms that should be used 47 # usr/lib/alternc/* root.www-data 750 48 # etc/alternc/* root.root 750 46 49 47 50 # Add here commands to install the package into debian/tmp. 48 51 # 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 \ 50 54 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 \ 52 57 install/etc/webalizer/template.conf debian/tmp/etc/webalizer/ 53 58 # les scripts d'install … … 104 109 dh_link 105 110 dh_compress 106 dh_fixperms 111 #we handle our own perms 112 # dh_fixperms 107 113 108 114 -
install/scripts/alternc.install
r190 r219 378 378 # 11.5 setup permissions for scripts and configs 379 379 system("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"); 380 system("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"); 395 381 system("chmod 0640 /var/alternc/bureau/class/*.php"); 396 382 system("chown root.www-data /var/alternc/bureau/class/*.php"); 397 383 system("chown root.www-data /var/alternc/bureau/class"); 398 system("chgrp www-data /etc/alternc");399 384 system("chgrp www-data /etc/alternc/local.sh"); 400 385 system("chgrp www-data /etc/alternc/sendmail");
Note: See TracChangeset
for help on using the changeset viewer.
