Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Webslice
ISPConfig 3
Commits
0c5140ab
Commit
0c5140ab
authored
Jul 30, 2019
by
Marius Burkard
Browse files
- fixed syntax error from previous commits
parent
709638f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/system.inc.php
View file @
0c5140ab
...
@@ -1832,7 +1832,7 @@ class system{
...
@@ -1832,7 +1832,7 @@ class system{
function
is_mounted
(
$mountpoint
){
function
is_mounted
(
$mountpoint
){
//$cmd = 'df 2>/dev/null | grep " '.$mountpoint.'$"';
//$cmd = 'df 2>/dev/null | grep " '.$mountpoint.'$"';
$cmd
=
'mount 2>/dev/null | grep ?'
;
$cmd
=
'mount 2>/dev/null | grep ?'
;
exec
(
$cmd
,
' on '
.
$mountpoint
.
' type '
);
$this
->
exec_safe
(
$cmd
,
' on '
.
$mountpoint
.
' type '
);
$return_var
=
$this
->
last_exec_retcode
();
$return_var
=
$this
->
last_exec_retcode
();
return
$return_var
==
0
?
true
:
false
;
return
$return_var
==
0
?
true
:
false
;
}
}
...
...
Write
Preview
Supports
Markdown
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