- Detect older ISPConfig versions in installer and stop if ISPConfig 2 is found.
| | |
| | | die("ERROR: Cannot write to the directory ".dirname(ISPC_LOG_FILE).". Are you root or sudo ?\n\n"); |
| | | } |
| | | |
| | | if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) { |
| | | die('This software can not be installed on a server wich runs ISPConfig 2.x.'); |
| | | } |
| | | |
| | | //** Select the language |
| | | $conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en'); |
| | | |
| | |
| | | //** Installer/updater logfile |
| | | define('ISPC_LOG_FILE', '/var/log/ispconfig_install.log'); |
| | | |
| | | //** Check for ISPConfig 2.x versions |
| | | if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) { |
| | | die('This software can not be installed on a server wich runs ISPConfig 2.x.'); |
| | | } |
| | | |
| | | //** Get distribution identifier |
| | | $distname = get_distname(); |
| | | |