Current time: 11-24-2024, 12:38 PM Hello There, Guest! (LoginRegister)


Post Reply 
New ispCP Software Installer *RC1*
Author Message
Nuxwin
Unregistered

 
Post: #12
RE: New ispCP Software Installer *BETA*
Hi ;
Hum, do you want me to go crazy ? Big Grin

beta 9.1 --> ispcp-sw-mngr script

Code:
sub sw_add_data {
...

    $rs = sys_command_rs("/bin/cp $sw_src_path-$sw_software_id.tar.gz $sw_tmp_path/");
    $rs = sys_command_rs("/bin/tar -xzf $sw_tmp_path/$sw_software_archive-$sw_software_id.tar.gz");
    $rs = sys_command_rs("/bin/cp -r $sw_tmp_path/web/* $sw_dest_path/");
    $rs = sys_command_rs("/bin/chown -R $uid:$gid $sw_dest_path/*");
    $rs = sys_command_rs("/bin/sh $sw_tmp_path/$sw_software_archive \"install,$sw_software_db,$sw_software_prefix,

...
}

sub sw_del_data {
...
        $rs = sys_command_rs("/bin/cp $sw_src_path-$sw_software_id.tar.gz $sw_tmp_path/");
        $rs = sys_command_rs("/bin/tar -xzf $sw_tmp_path/$sw_software_archive-$sw_software_id.tar.gz");
        $rs = sys_command_rs("/bin/sh $sw_tmp_path/$sw_software_archive \"delete,$sw_software_db,$sw_software_prefix,$sw_database,$sw_database_user,$sw_da​tabase_tmp_pwd,$sw_install_username,$sw_install_password,$sw_install_email,$dmn_​name,$sw_dest_path,$sw_pfad\"");
        $rs = sys_command_rs("/bin/rm -rf $sw_tmp_path");
...

}

Conffile /etc/ispcp/ispcp.conf (debian example) :

Code:
...
CMD_CHOWN = /bin/chown
...
CMD_CP = /bin/cp
...
CMD_TAR = /bin/tar
...

If other commands are required, they should be put in the ispcp.conf, not to hard.
08-14-2009 04:21 PM
Quote this message in a reply
Post Reply 


Messages In This Thread
New ispCP Software Installer *RC1* - rbtux - 08-12-2009, 04:08 AM
RE: New ispCP Software Installer *BETA* - Nuxwin - 08-14-2009, 09:33 AM
RE: New ispCP Software Installer *BETA* - Nuxwin - 08-14-2009 04:21 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 08-14-2009, 06:59 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 08-14-2009, 08:12 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 09-24-2009, 07:12 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 09-24-2009, 11:46 PM
RE: New ispCP Software Installer *BETA* - Nuxwin - 09-25-2009, 01:31 AM
RE: New ispCP Software Installer *RC1* - Nuxwin - 04-09-2010, 12:43 AM
RE: New ispCP Software Installer *RC1* - Nuxwin - 10-06-2010, 11:13 AM
RE: New ispCP Software Installer *RC1* - Nuxwin - 10-06-2010, 04:03 PM

Forum Jump:


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