Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Jozef Sroka
ISPConfig 3
Commits
7d6dfc5f
Commit
7d6dfc5f
authored
Oct 05, 2016
by
Till Brehm
Browse files
Fixed #4227 ispconfig_update.sh script finish with errors
parent
39981b72
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/scripts/ispconfig_update.php
View file @
7d6dfc5f
...
...
@@ -94,7 +94,7 @@ if($method == 'stable') {
$new_version
=
@
file_get_contents
(
'http://www.ispconfig.org/downloads/ispconfig3_version.txt'
)
or
die
(
'Unable to retrieve version file.'
);
$new_version
=
trim
(
$new_version
);
if
(
version_compare
(
$new_version
,
ISPC_APP_VERSION
,
'>'
))
{
passthru
(
'/usr/local/ispconfig/server/scripts/update_
from_tgz
.sh'
);
passthru
(
'/usr/local/ispconfig/server/scripts/update_
stable
.sh'
);
exit
;
}
else
{
echo
"There are no updates available for ISPConfig "
.
ISPC_APP_VERSION
.
"
\n
"
;
...
...
server/scripts/update_
from_tgz
.sh
→
server/scripts/update_
stable
.sh
View file @
7d6dfc5f
#!/bin/bash
{
{
umask
0077
\
&&
tmpdir
=
`
mktemp
-dt
"
$(
basename
$0
)
.XXXXXXXXXX"
`
\
...
...
@@ -28,3 +28,4 @@ else
fi
exit
0
}
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