Skip to content
Snippets Groups Projects
Commit 86712bae authored by Jesse Norell's avatar Jesse Norell
Browse files

copy ispconfig_update.sh to a temp file to run

parent 269b2cef
Branches
Tags
No related merge requests found
...@@ -15,11 +15,25 @@ _UPD=1 ...@@ -15,11 +15,25 @@ _UPD=1
{ {
if [ -n "${_UPD}" ] if [ -n "${_UPD}" ]
then then
n=$(readlink -f ${0})
if [ "$(basename ${0})" == "ispconfig_update.sh" ]
then
cp -p ${n} ${n}.exec
chmod +x ${n}.exec
exec ${n}.exec
else
# clean up tmp .exec file
if [ "$(basename ${0})" == "ispconfig_update.sh.exec" ]; then
rm -f ${0}
fi
exec php -q \ exec php -q \
-d disable_classes= \ -d disable_classes= \
-d disable_functions= \ -d disable_functions= \
-d open_basedir= \ -d open_basedir= \
/usr/local/ispconfig/server/scripts/ispconfig_update.php /usr/local/ispconfig/server/scripts/ispconfig_update.php
fi
fi fi
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment