root/alternc/tags/0.9.6.3/install/initrep.sh
| Revision 1554, 1.9 kB (checked in by remi, 3 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | # |
| 3 | # $Id: initrep.sh,v 1.13 2004/11/10 22:28:34 anonymous Exp $ |
| 4 | # ---------------------------------------------------------------------- |
| 5 | # AlternC - Web Hosting System |
| 6 | # Copyright (C) 2002 by the AlternC Development Team. |
| 7 | # http://alternc.org/ |
| 8 | # ---------------------------------------------------------------------- |
| 9 | # Based on: |
| 10 | # Valentin Lacambre's web hosting softwares: http://altern.org/ |
| 11 | # ---------------------------------------------------------------------- |
| 12 | # LICENSE |
| 13 | # |
| 14 | # This program is free software; you can redistribute it and/or |
| 15 | # modify it under the terms of the GNU General Public License (GPL) |
| 16 | # as published by the Free Software Foundation; either version 2 |
| 17 | # of the License, or (at your option) any later version. |
| 18 | # |
| 19 | # This program is distributed in the hope that it will be useful, |
| 20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | # GNU General Public License for more details. |
| 23 | # |
| 24 | # To read the license please visit http://www.gnu.org/copyleft/gpl.html |
| 25 | # ---------------------------------------------------------------------- |
| 26 | # Original Author of file: Jerome Moinet, Benjamin Sonntag |
| 27 | # Purpose of file: Create all the directories for AlternC in /$DATA/ |
| 28 | # ---------------------------------------------------------------------- |
| 29 | # |
| 30 | DATA="/var/alternc" |
| 31 | |
| 32 | for sub in bureau cgi-bin db dns/redir exec.usr html mail mla tmp apacheconf |
| 33 | do |
| 34 | mkdir -p $DATA/$sub |
| 35 | done |
| 36 | |
| 37 | chmod 1777 $DATA/tmp |
| 38 | |
| 39 | for i in a b c d e f g h i j k l m n o p q r s t u v w x y z _ 0 1 2 3 4 5 6 7 8 9 |
| 40 | do |
| 41 | for sub in dns dns/redir mail html apacheconf |
| 42 | do |
| 43 | mkdir -p $DATA/$sub/$i |
| 44 | chown www-data $DATA/$sub/$i |
| 45 | done |
| 46 | done |
| 47 | |
| 48 | touch $DATA/apacheconf/override_php.conf |
| 49 | mkdir -p /var/log/alternc |
| 50 | chown www-data:www-data /var/log/alternc |
| 51 | chgrp -R www-data /etc/alternc |
| 52 | |
| 53 | mkdir -p /var/spool/postfix/var/run/saslauthd |
| 54 | chmod 710 /var/spool/postfix/var/run/saslauthd |
Note: See TracBrowser for help on using the browser.
