Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Zvonimir
ISPConfig 3
Commits
7e1cfbe9
Commit
7e1cfbe9
authored
May 03, 2012
by
Falko Timme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed FS#2198.
parent
105a2aec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
43 deletions
+31
-43
install/dist/lib/fedora.lib.php
install/dist/lib/fedora.lib.php
+4
-13
install/dist/lib/gentoo.lib.php
install/dist/lib/gentoo.lib.php
+9
-10
install/dist/lib/opensuse.lib.php
install/dist/lib/opensuse.lib.php
+4
-4
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+14
-16
No files found.
install/dist/lib/fedora.lib.php
View file @
7e1cfbe9
...
...
@@ -902,7 +902,7 @@ class installer_dist extends installer_base {
$command
=
"chmod +x
$install_dir
/server/scripts/*.sh"
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
if
(
$conf
[
'apache'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
//* Copy the ISPConfig vhost for the controlpanel
// TODO: These are missing! should they be "vhost_dist_*_dir" ?
$vhost_conf_dir
=
$conf
[
'apache'
][
'vhost_conf_dir'
];
...
...
@@ -930,7 +930,7 @@ class installer_dist extends installer_base {
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if
(
$this
->
i
nstall_ispconfig_interface
==
true
&&
$this
->
i
s_update
==
false
)
{
if
(
$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"
);
...
...
@@ -944,18 +944,9 @@ class installer_dist extends installer_base {
replaceLine
(
'/var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter'
,
'PHPRC='
,
'PHPRC=/etc/'
,
0
,
0
);
}
//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"
);
}
}
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
//* Copy the ISPConfig vhost for the controlpanel
$vhost_conf_dir
=
$conf
[
'nginx'
][
'vhost_conf_dir'
];
$vhost_conf_enabled_dir
=
$conf
[
'nginx'
][
'vhost_conf_enabled_dir'
];
...
...
@@ -998,7 +989,7 @@ class installer_dist extends installer_base {
//copy('tpl/nginx_ispconfig.vhost.master', $vhost_conf_dir.'/ispconfig.vhost');
//* and create the symlink
if
(
$this
->
i
nstall_ispconfig_interface
==
true
&&
$this
->
i
s_update
==
false
)
{
if
(
$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'
))
{
symlink
(
$vhost_conf_dir
.
'/ispconfig.vhost'
,
$vhost_conf_enabled_dir
.
'/000-ispconfig.vhost'
);
...
...
install/dist/lib/gentoo.lib.php
View file @
7e1cfbe9
...
...
@@ -561,7 +561,7 @@ class installer extends installer_base
global
$conf
;
//* Create the ispconfig apps vhost user and group
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
if
(
$conf
[
'apache'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
$apps_vhost_user
=
escapeshellcmd
(
$conf
[
'web'
][
'apps_vhost_user'
]);
$apps_vhost_group
=
escapeshellcmd
(
$conf
[
'web'
][
'apps_vhost_group'
]);
$install_dir
=
escapeshellcmd
(
$conf
[
'web'
][
'website_basedir'
]
.
'/apps'
);
...
...
@@ -619,7 +619,7 @@ class installer extends installer_base
}
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
$apps_vhost_user
=
escapeshellcmd
(
$conf
[
'web'
][
'apps_vhost_user'
]);
$apps_vhost_group
=
escapeshellcmd
(
$conf
[
'web'
][
'apps_vhost_group'
]);
$install_dir
=
escapeshellcmd
(
$conf
[
'web'
][
'website_basedir'
]
.
'/apps'
);
...
...
@@ -684,12 +684,11 @@ class installer extends installer_base
//copy('tpl/nginx_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if
(
$this
->
install_ispconfig_interface
==
true
)
{
if
(
@
is_link
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
))
unlink
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
);
if
(
!@
is_link
(
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
))
{
symlink
(
$vhost_conf_dir
.
'/apps.vhost'
,
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
);
}
if
(
@
is_link
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
))
unlink
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
);
if
(
!@
is_link
(
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
))
{
symlink
(
$vhost_conf_dir
.
'/apps.vhost'
,
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
);
}
}
}
...
...
@@ -904,7 +903,7 @@ class installer extends installer_base
$command
=
"chmod +x
$install_dir
/server/scripts/*.sh"
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
if
(
$conf
[
'apache'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
//* Copy the ISPConfig vhost for the controlpanel
$content
=
$this
->
get_template_file
(
"apache_ispconfig.vhost"
,
true
);
$content
=
str_replace
(
'{vhost_port}'
,
$conf
[
'apache'
][
'vhost_port'
],
$content
);
...
...
@@ -936,7 +935,7 @@ class installer extends installer_base
}
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
//* Copy the ISPConfig vhost for the controlpanel
$vhost_conf_dir
=
$conf
[
'nginx'
][
'vhost_conf_dir'
];
$vhost_conf_enabled_dir
=
$conf
[
'nginx'
][
'vhost_conf_enabled_dir'
];
...
...
@@ -979,7 +978,7 @@ class installer extends installer_base
//copy('tpl/nginx_ispconfig.vhost.master', $vhost_conf_dir.'/ispconfig.vhost');
//* and create the symlink
if
(
$this
->
i
nstall_ispconfig_interface
==
true
&&
$this
->
i
s_update
==
false
)
{
if
(
$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'
))
{
symlink
(
$vhost_conf_dir
.
'/ispconfig.vhost'
,
$vhost_conf_enabled_dir
.
'/000-ispconfig.vhost'
);
...
...
install/dist/lib/opensuse.lib.php
View file @
7e1cfbe9
...
...
@@ -936,7 +936,7 @@ class installer_dist extends installer_base {
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
if
(
$conf
[
'apache'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
//* Copy the ISPConfig vhost for the controlpanel
// TODO: These are missing! should they be "vhost_dist_*_dir" ?
$vhost_conf_dir
=
$conf
[
'apache'
][
'vhost_conf_dir'
];
...
...
@@ -976,7 +976,7 @@ class installer_dist extends installer_base {
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if
(
$this
->
i
nstall_ispconfig_interface
==
true
&&
$this
->
i
s_update
==
false
)
{
if
(
$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"
);
...
...
@@ -988,7 +988,7 @@ class installer_dist extends installer_base {
replaceLine
(
'/usr/local/ispconfig/server/conf/vhost.conf.master'
,
"suPHP_UserGroup"
,
" suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>"
,
0
);
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
//* Copy the ISPConfig vhost for the controlpanel
$vhost_conf_dir
=
$conf
[
'nginx'
][
'vhost_conf_dir'
];
$vhost_conf_enabled_dir
=
$conf
[
'nginx'
][
'vhost_conf_enabled_dir'
];
...
...
@@ -1031,7 +1031,7 @@ class installer_dist extends installer_base {
//copy('tpl/nginx_ispconfig.vhost.master', $vhost_conf_dir.'/ispconfig.vhost');
//* and create the symlink
if
(
$this
->
i
nstall_ispconfig_interface
==
true
&&
$this
->
i
s_update
==
false
)
{
if
(
$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'
))
{
symlink
(
$vhost_conf_dir
.
'/ispconfig.vhost'
,
$vhost_conf_enabled_dir
.
'/000-ispconfig.vhost'
);
...
...
install/lib/installer_base.lib.php
View file @
7e1cfbe9
...
...
@@ -1420,7 +1420,7 @@ class installer_base {
global
$conf
;
//* Create the ispconfig apps vhost user and group
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
if
(
$conf
[
'apache'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
$apps_vhost_user
=
escapeshellcmd
(
$conf
[
'web'
][
'apps_vhost_user'
]);
$apps_vhost_group
=
escapeshellcmd
(
$conf
[
'web'
][
'apps_vhost_group'
]);
$install_dir
=
escapeshellcmd
(
$conf
[
'web'
][
'website_basedir'
]
.
'/apps'
);
...
...
@@ -1469,12 +1469,11 @@ class installer_base {
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if
(
$this
->
install_ispconfig_interface
==
true
)
{
if
(
@
is_link
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
))
unlink
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
);
if
(
!@
is_link
(
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
))
{
symlink
(
$vhost_conf_dir
.
'/apps.vhost'
,
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
);
}
if
(
@
is_link
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
))
unlink
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
);
if
(
!@
is_link
(
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
))
{
symlink
(
$vhost_conf_dir
.
'/apps.vhost'
,
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
);
}
if
(
!
is_file
(
$conf
[
'web'
][
'website_basedir'
]
.
'/php-fcgi-scripts/apps/.php-fcgi-starter'
))
{
mkdir
(
$conf
[
'web'
][
'website_basedir'
]
.
'/php-fcgi-scripts/apps'
,
0755
,
true
);
copy
(
'tpl/apache_apps_fcgi_starter.master'
,
$conf
[
'web'
][
'website_basedir'
]
.
'/php-fcgi-scripts/apps/.php-fcgi-starter'
);
...
...
@@ -1483,7 +1482,7 @@ class installer_base {
}
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
$apps_vhost_user
=
escapeshellcmd
(
$conf
[
'web'
][
'apps_vhost_user'
]);
$apps_vhost_group
=
escapeshellcmd
(
$conf
[
'web'
][
'apps_vhost_group'
]);
$install_dir
=
escapeshellcmd
(
$conf
[
'web'
][
'website_basedir'
]
.
'/apps'
);
...
...
@@ -1548,12 +1547,11 @@ class installer_base {
//copy('tpl/nginx_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if
(
$this
->
install_ispconfig_interface
==
true
)
{
if
(
@
is_link
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
))
unlink
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
);
if
(
!@
is_link
(
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
))
{
symlink
(
$vhost_conf_dir
.
'/apps.vhost'
,
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
);
}
if
(
@
is_link
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
))
unlink
(
$vhost_conf_enabled_dir
.
'/apps.vhost'
);
if
(
!@
is_link
(
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
))
{
symlink
(
$vhost_conf_dir
.
'/apps.vhost'
,
$vhost_conf_enabled_dir
.
'/000-apps.vhost'
);
}
}
}
...
...
@@ -1815,7 +1813,7 @@ class installer_base {
$command
=
"chmod +x
$install_dir
/server/scripts/*.sh"
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
if
(
$conf
[
'apache'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
//* Copy the ISPConfig vhost for the controlpanel
$vhost_conf_dir
=
$conf
[
'apache'
][
'vhost_conf_dir'
];
$vhost_conf_enabled_dir
=
$conf
[
'apache'
][
'vhost_conf_enabled_dir'
];
...
...
@@ -1841,7 +1839,7 @@ class installer_base {
//copy('tpl/apache_ispconfig.vhost.master', $vhost_conf_dir.'/ispconfig.vhost');
//* and create the symlink
if
(
$this
->
i
nstall_ispconfig_interface
==
true
&&
$this
->
i
s_update
==
false
)
{
if
(
$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'
))
{
symlink
(
$vhost_conf_dir
.
'/ispconfig.vhost'
,
$vhost_conf_enabled_dir
.
'/000-ispconfig.vhost'
);
...
...
@@ -1857,7 +1855,7 @@ class installer_base {
}
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
&&
$this
->
install_ispconfig_interface
==
true
){
//* Copy the ISPConfig vhost for the controlpanel
$vhost_conf_dir
=
$conf
[
'nginx'
][
'vhost_conf_dir'
];
$vhost_conf_enabled_dir
=
$conf
[
'nginx'
][
'vhost_conf_enabled_dir'
];
...
...
@@ -1900,7 +1898,7 @@ class installer_base {
//copy('tpl/nginx_ispconfig.vhost.master', $vhost_conf_dir.'/ispconfig.vhost');
//* and create the symlink
if
(
$this
->
i
nstall_ispconfig_interface
==
true
&&
$this
->
i
s_update
==
false
)
{
if
(
$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'
))
{
symlink
(
$vhost_conf_dir
.
'/ispconfig.vhost'
,
$vhost_conf_enabled_dir
.
'/000-ispconfig.vhost'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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