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
Judah - MW
ISPConfig 3
Commits
54d11f0f
Commit
54d11f0f
authored
Sep 08, 2020
by
Marius Burkard
Browse files
- added missing runner file
parent
82f6e7b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/scripts/update_runner.sh
0 → 100644
View file @
54d11f0f
#!/bin/bash
_UPD
=
1
# padding handles script being overwritten during updates
# see https://git.ispconfig.org/ispconfig/ispconfig3/issues/4227
##################################################
##################################################
##################################################
##################################################
##################################################
##################################################
##################################################
##################################################
##################################################
##################################################
##################################################
##################################################
SOURCE
=
$1
URL
=
""
if
[[
"
$SOURCE
"
==
"stable"
]]
;
then
URL
=
"https://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz"
elif
[[
"
$SOURCE
"
==
"nightly"
]]
;
then
URL
=
"https://www.ispconfig.org/downloads/ISPConfig-3-nightly.tar.gz"
elif
[[
"
$SOURCE
"
==
"git-develop"
]]
;
then
URL
=
"https://git.ispconfig.org/ispconfig/ispconfig3/repository/archive.tar.gz?ref=develop"
else
echo
"Please choose an installation source (stable, nightly, git-develop)"
exit
1
fi
CURDIR
=
$PWD
cd
/tmp
{
if
[
-n
"
${
_UPD
}
"
]
then
{
umask
0077
\
&&
tmpdir
=
`
mktemp
-dt
"
$(
basename
$0
)
.XXXXXXXXXX"
`
\
&&
test
-d
"
${
tmpdir
}
"
\
&&
cd
"
${
tmpdir
}
"
}
||
{
echo
'mktemp failed'
exit
1
}
wget
-O
ISPConfig-3.tar.gz
"
${
URL
}
"
if
[
-f
ISPConfig-3.tar.gz
]
then
tar
xvzf ISPConfig-3.tar.gz
--strip-components
=
1
cd install
/
php
-q
\
-d
disable_classes
=
\
-d
disable_functions
=
\
-d
open_basedir
=
\
update.php
cd
/tmp
rm
-rf
"
${
tmpdir
}
"
else
echo
"Unable to download the update."
cd
"
$CURDIR
"
exit
1
fi
fi
cd
"
$CURDIR
"
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