Current time: 12-27-2024, 06:54 PM Hello There, Guest! (LoginRegister)


Post Reply 
Creación de carpeta
Author Message
Puntonetsvb Offline
Junior Member
*

Posts: 214
Joined: Nov 2008
Reputation: 0
Post: #1
Creación de carpeta
Quiero que cuando se cree un dominio nuevo, crear una carpeta con el, por ejemplo

dentro de htdocs la carpeta pepe

¿Sabeis cual es el script que crea las carpetas?
11-21-2008 07:24 PM
Find all posts by this user Quote this message in a reply
la1o Offline
Junior Member
*

Posts: 11
Joined: Nov 2008
Reputation: 0
Post: #2
RE: Creación de carpeta
en el script /var/www/ispcp/engine/ispcp-dmn-mngr

Code:
1540         if (!(-e "$www_dir/$dmn_name/htdocs/")) {
1541                 $rs = make_dir(
1542                         "$www_dir/$dmn_name/htdocs/",
1543                         $sys_user,
1544                         $sys_group,
1545                         0775
1546                 );
1547                 return $rs if ($rs != 0);

podrias agregar algo como

Code:
$rs1 = make_dir(
                         "$www_dir/$dmn_name/htdocs/pepe",
                         $sys_user,
                         $sys_group,
                         0775
                 );
                 return $rs1 if ($rs1 != 0);

ojala sirva

saludos
11-29-2008 03:34 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)