- Force user deletion for jailkit users
- Fixed bug in updater that made ispconfig invoices directory unreadable.
- Removed passing of variables by reference in ispconfig monitor.
- Changed monitor of opensuse updates so that the command does not install them automatically.
| | |
| | | // Edit the file Edit the file /etc/sudoers and comment out the requiregetty line, otherwise the backup function will fail |
| | | replaceLine('/etc/sudoers','Defaults requiretty','#Defaults requiretty',0,0); |
| | | |
| | | if(is_file($install_dir.'/interface/invoices')) { |
| | | if(is_dir($install_dir.'/interface/invoices')) { |
| | | chmod($install_dir.'/interface/invoices', 0770); |
| | | chown($install_dir.'/interface/invoices', 'ispconfig'); |
| | | chgrp($install_dir.'/interface/invoices', 'ispconfig'); |
| | |
| | | chgrp($install_dir.'/server/lib/mysql_clientdb.conf', 'root'); |
| | | } |
| | | |
| | | if(is_file($install_dir.'/interface/invoices')) { |
| | | if(is_dir($install_dir.'/interface/invoices')) { |
| | | chmod($install_dir.'/interface/invoices', 0770); |
| | | chown($install_dir.'/interface/invoices', 'ispconfig'); |
| | | chgrp($install_dir.'/interface/invoices', 'ispconfig'); |
| | |
| | | exec('chmod 744 /usr/local/bin/run-getmail.sh'); |
| | | } |
| | | |
| | | if(is_file($install_dir.'/interface/invoices')) { |
| | | if(is_dir($install_dir.'/interface/invoices')) { |
| | | chmod($install_dir.'/interface/invoices', 0770); |
| | | chown($install_dir.'/interface/invoices', 'ispconfig'); |
| | | chgrp($install_dir.'/interface/invoices', 'ispconfig'); |
| | |
| | | chgrp($install_dir.'/server/lib/mysql_clientdb.conf', 'root'); |
| | | } |
| | | |
| | | if(is_file($install_dir.'/interface/invoices')) { |
| | | if(is_dir($install_dir.'/interface/invoices')) { |
| | | chmod($install_dir.'/interface/invoices', 0770); |
| | | chown($install_dir.'/interface/invoices', 'ispconfig'); |
| | | chgrp($install_dir.'/interface/invoices', 'ispconfig'); |
| | |
| | | $ispcData = null; |
| | | foreach($records as $record) { |
| | | /* get the state from the db-data */ |
| | | _processDbState($record['type'], $serverId, &$serverState, &$messages); |
| | | _processDbState($record['type'], $serverId, $serverState, $messages); |
| | | /* if we have the os-info, get it */ |
| | | if ($record['type'] == 'os_info') { |
| | | $osData = unserialize($record['data']); |
| | |
| | | /* |
| | | * Fetch the output |
| | | */ |
| | | $data['output'] = shell_exec('zypper --non-interactive up'); |
| | | $data['output'] = shell_exec('zypper lu'); |
| | | } else { |
| | | /* |
| | | * It is not Debian/Ubuntu, so there is no data and no state |
| | |
| | | //exec('rm -rf '.$data['old']['dir'].$jailkit_chroot_userhome); |
| | | |
| | | if(@is_dir($data['old']['dir'].$jailkit_chroot_userhome)) { |
| | | $command = 'userdel'; |
| | | $command = 'userdel -f'; |
| | | $command .= ' '.escapeshellcmd($data['old']['username']); |
| | | exec($command); |
| | | $app->log("Jailkit Plugin -> delete chroot home:".$data['old']['dir'].$jailkit_chroot_userhome,LOGLEVEL_DEBUG); |