| | |
| | | $this->app = $app; |
| | | $this->jailkit_config = $app->getconf->get_server_config($conf["server_id"], 'jailkit'); |
| | | |
| | | $app->system->web_folder_protection($parent_domain['document_root'],false); |
| | | |
| | | $this->_update_website_security_level(); |
| | | |
| | | $this->_setup_jailkit_chroot(); |
| | |
| | | exec($command); |
| | | |
| | | $this->_update_website_security_level(); |
| | | |
| | | $app->system->web_folder_protection($parent_domain['document_root'],true); |
| | | } |
| | | |
| | | $app->log("Jailkit Plugin (Cron) -> insert username:".$parent_domain['system_user'],LOGLEVEL_DEBUG); |
| | |
| | | $this->app = $app; |
| | | $this->jailkit_config = $app->getconf->get_server_config($conf["server_id"], 'jailkit'); |
| | | |
| | | $app->system->web_folder_protection($parent_domain['document_root'],false); |
| | | $this->_update_website_security_level(); |
| | | |
| | | $this->_setup_jailkit_chroot(); |
| | | $this->_add_jailkit_user(); |
| | | |
| | | $this->_update_website_security_level(); |
| | | $app->system->web_folder_protection($parent_domain['document_root'],true); |
| | | } |
| | | |
| | | $app->log("Jailkit Plugin (Cron) -> update username:".$parent_domain['system_user'],LOGLEVEL_DEBUG); |
| | |
| | | $tpl->setVar('home_dir',$this->_get_home_dir("")); |
| | | |
| | | $bashrc = escapeshellcmd($this->parent_domain['document_root']).'/etc/bash.bashrc'; |
| | | if(@is_file($bashrc)) unlink($bashrc); |
| | | if(@is_file($bashrc) || @is_link($bashrc)) unlink($bashrc); |
| | | |
| | | file_put_contents($bashrc,$tpl->grab()); |
| | | unset($tpl); |
| | |
| | | $tpl->setVar('domain',$this->parent_domain['domain']); |
| | | |
| | | $motd = escapeshellcmd($this->parent_domain['document_root']).'/var/run/motd'; |
| | | if(@is_file($motd)) unlink($motd); |
| | | if(@is_file($motd) || @is_link($motd)) unlink($motd); |
| | | |
| | | file_put_contents($motd,$tpl->grab()); |
| | | |