Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
0c0d284f
Commit
0c0d284f
authored
Apr 22, 2008
by
tbrehm
Browse files
- Detect older ISPConfig versions in installer and stop if ISPConfig 2 is found.
parent
3341c797
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/install.php
View file @
0c0d284f
...
...
@@ -81,6 +81,10 @@ if(!is_writable(dirname(ISPC_LOG_FILE))){
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'
);
...
...
install/update.php
View file @
0c0d284f
...
...
@@ -53,6 +53,11 @@ require_once('lib/installer_base.lib.php');
//** 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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment