Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
7a4489f9
Commit
7a4489f9
authored
Jun 29, 2010
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented: FS#1101 - Use relative paths for symlinks to enable modules.
parent
54396bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+16
-4
No files found.
install/lib/installer_base.lib.php
View file @
7a4489f9
...
...
@@ -1242,9 +1242,15 @@ class installer_base {
$module_name
=
substr
(
$file
,
0
,
-
8
);
$tmp
=
new
$module_name
;
if
(
$tmp
->
onInstall
())
{
if
(
!@
is_link
(
$install_dir
.
'/server/mods-enabled/'
.
$file
))
@
symlink
(
$install_dir
.
'/server/mods-available/'
.
$file
,
$install_dir
.
'/server/mods-enabled/'
.
$file
);
if
(
!@
is_link
(
$install_dir
.
'/server/mods-enabled/'
.
$file
))
{
// @symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-enabled/'.$file);
@
symlink
(
$install_dir
.
'/server/mods-available/'
.
$file
,
'../mods-enabled/'
.
$file
);
}
if
(
strpos
(
$file
,
'_core_module'
)
!==
false
)
{
if
(
!@
is_link
(
$install_dir
.
'/server/mods-core/'
.
$file
))
@
symlink
(
$install_dir
.
'/server/mods-available/'
.
$file
,
$install_dir
.
'/server/mods-core/'
.
$file
);
if
(
!@
is_link
(
$install_dir
.
'/server/mods-core/'
.
$file
))
{
//@symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-core/'.$file);
@
symlink
(
$install_dir
.
'/server/mods-available/'
.
$file
,
'../mods-core/'
.
$file
);
}
}
}
unset
(
$tmp
);
...
...
@@ -1263,9 +1269,15 @@ class installer_base {
$plugin_name
=
substr
(
$file
,
0
,
-
8
);
$tmp
=
new
$plugin_name
;
if
(
method_exists
(
$tmp
,
'onInstall'
)
&&
$tmp
->
onInstall
())
{
if
(
!@
is_link
(
$install_dir
.
'/server/plugins-enabled/'
.
$file
))
@
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
$install_dir
.
'/server/plugins-enabled/'
.
$file
);
if
(
!@
is_link
(
$install_dir
.
'/server/plugins-enabled/'
.
$file
))
{
// @symlink($install_dir.'/server/plugins-available/'.$file, $install_dir.'/server/plugins-enabled/'.$file);
@
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
'../plugins-enabled/'
.
$file
);
}
if
(
strpos
(
$file
,
'_core_plugin'
)
!==
false
)
{
if
(
!@
is_link
(
$install_dir
.
'/server/plugins-core/'
.
$file
))
@
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
$install_dir
.
'/server/plugins-core/'
.
$file
);
if
(
!@
is_link
(
$install_dir
.
'/server/plugins-core/'
.
$file
))
{
// @symlink($install_dir.'/server/plugins-available/'.$file, $install_dir.'/server/plugins-core/'.$file);
@
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
'../plugins-core/'
.
$file
);
}
}
}
unset
(
$tmp
);
...
...
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