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
No related branches found
No related tags found
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
exec php -q \ n=$(readlink -f ${0})
-d disable_classes= \ if [ "$(basename ${0})" == "ispconfig_update.sh" ]
-d disable_functions= \ then
-d open_basedir= \ cp -p ${n} ${n}.exec
/usr/local/ispconfig/server/scripts/ispconfig_update.php 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 \
-d disable_classes= \
-d disable_functions= \
-d open_basedir= \
/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.
Finish editing this message first!
Please register or to comment