Changeset 302
- Timestamp:
- 02/22/06 00:04:37 (7 years ago)
- Location:
- install/scripts
- Files:
-
- 2 edited
-
alternc.install (modified) (8 diffs)
-
dopo.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
install/scripts/alternc.install
r285 r302 9 9 10 10 # this script needs and calls: 11 # /usr/share/alternc/ 1.0/install/initrep.sh12 # /usr/share/alternc/ 1.0/install/mysql.sh13 # su www-data -c /usr/share/alternc/ 1.0/install/newone.php11 # /usr/share/alternc/install/initrep.sh 12 # /usr/share/alternc/install/mysql.sh 13 # su www-data -c /usr/share/alternc/install/newone.php 14 14 15 15 # These are the steps followed by alternc.install … … 29 29 # 9. Stop services 30 30 # 10. Create dir structure and copy panel files 31 # see /usr/share/alternc/ 1.0/install/initrep.sh31 # see /usr/share/alternc/install/initrep.sh 32 32 # 11. Send etc files to /etc :) 33 33 # 11.1 copy all the files setup in 7 in /etc, plus other places … … 39 39 # 13. DELETED 40 40 # 14. Create MySQL database, restart mysql and add default users 41 # see /usr/share/alternc/ 1.0/install/mysql.sh41 # see /usr/share/alternc/install/mysql.sh 42 42 # 15. Start services 43 43 # 16. Create the first user 44 # see su www-data -c /usr/share/alternc/ 1.0/install/newone.php44 # see su www-data -c /usr/share/alternc/install/newone.php 45 45 # 17. Job's done ! Ready to serve... 46 46 … … 237 237 while (($key,$val) = each(%conf_vars)) { 238 238 print "parsing configuration file /$key $val "; 239 open F,"</usr/share/alternc/ 1.0/install/$key" || die "Erreur Ouverture R";239 open F,"</usr/share/alternc/install/$key" || die "Erreur Ouverture R"; 240 240 open G,">/tmp/alternc.install.tmp/$key" || die "Erreur Ouverture W"; 241 241 while ($buffer = <F>) { … … 281 281 system("tar -czf /usr/lib/alternc/backups/system.$TS.tgz $TMP >/dev/null 2>&1"); 282 282 system("rm -rf $TMP >/dev/null 2>&1"); 283 system("/usr/share/alternc/ 1.0/install/dopo.sh");283 system("/usr/share/alternc/install/dopo.sh"); 284 284 285 285 ######################################################################### … … 317 317 318 318 print "Creating directory structure in /var/alternc\n"; 319 system("/usr/share/alternc/ 1.0/install/initrep.sh");319 system("/usr/share/alternc/install/initrep.sh"); 320 320 321 321 … … 352 352 353 353 print "Creating MySQL db, restarting mysql.\n"; 354 system("/usr/share/alternc/ 1.0/install/mysql.sh '".$conf{dbuser}."' '".$conf{dbpwd}."' '".$conf{dbname}."' '".$conf{myrandom}."'");354 system("/usr/share/alternc/install/mysql.sh '".$conf{dbuser}."' '".$conf{dbpwd}."' '".$conf{dbname}."' '".$conf{myrandom}."'"); 355 355 356 356 … … 387 387 print "Creating user root, with password root (change it as soon as possible)\n"; 388 388 389 system("su www-data -c /usr/share/alternc/ 1.0/install/newone.php");389 system("su www-data -c /usr/share/alternc/install/newone.php"); 390 390 391 391 ######################################################################### -
install/scripts/dopo.sh
r118 r302 26 26 cd $B 27 27 rm -f alternc alternc.mo 28 /usr/share/alternc/ 1.0/install/po.pl28 /usr/share/alternc/install/po.pl 29 29 msgfmt alternc -o alternc.mo 30 30 read A
Note: See TracChangeset
for help on using the changeset viewer.
