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
76f19734
Commit
76f19734
authored
Feb 27, 2009
by
tbrehm
Browse files
Fixed centos installer bugs.
parent
79d37fb3
Changes
2
Show whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
76f19734
...
...
@@ -680,6 +680,22 @@ class installer_dist extends installer_base {
wf
(
"
$vhost_conf_dir
/ispconfig.vhost"
,
$content
);
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if
(
$this
->
install_ispconfig_interface
==
true
&&
$this
->
is_update
==
false
)
{
if
(
@
is_link
(
"
$vhost_conf_enabled_dir
/ispconfig.vhost"
))
unlink
(
"
$vhost_conf_enabled_dir
/ispconfig.vhost"
);
if
(
!@
is_link
(
"
$vhost_conf_enabled_dir
/000-ispconfig.vhost"
))
{
exec
(
"ln -s
$vhost_conf_dir
/ispconfig.vhost
$vhost_conf_enabled_dir
/000-ispconfig.vhost"
);
}
exec
(
'mkdir -p /var/www/php-fcgi-scripts/ispconfig'
);
exec
(
'cp tpl/apache_ispconfig_fcgi_starter.master /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter'
);
exec
(
'chmod +x /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter'
);
exec
(
'ln -s /usr/local/ispconfig/interface/web /var/www/ispconfig'
);
exec
(
'chown -R ispconfig:ispconfig /var/www/php-fcgi-scripts/ispconfig'
);
}
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if
(
$this
->
install_ispconfig_interface
==
true
&&
$this
->
is_update
==
false
)
{
...
...
@@ -698,8 +714,8 @@ class installer_dist extends installer_base {
exec
(
'chown root /usr/local/bin/ispconfig_update_from_svn.sh'
);
exec
(
'chmod 700 /usr/local/bin/ispconfig_update_from_svn.sh'
);
//set the fast cgi starter script to executable
exec
(
'chmod 755 '
.
$install_dir
.
'/interface/bin/php-fcgi'
);
//
set the fast cgi starter script to executable
//
exec('chmod 755 '.$install_dir.'/interface/bin/php-fcgi');
//* Make the logs readable for the ispconfig user
if
(
@
is_file
(
'/var/log/maillog'
))
exec
(
'chmod +r /var/log/maillog'
);
...
...
install/lib/install.lib.php
View file @
76f19734
...
...
@@ -558,7 +558,7 @@ function removeLine($filename,$search_pattern,$strict = 0) {
}
function
is_installed
(
$appname
)
{
exec
(
'which '
.
escapeshellcmd
(
$appname
),
$out
);
exec
(
'which '
.
escapeshellcmd
(
$appname
)
.
' > /dev/null 2> /dev/null'
,
$out
);
if
(
isset
(
$out
[
0
])
&&
stristr
(
$out
[
0
],
$appname
))
{
return
true
;
}
else
{
...
...
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