We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57d4e9d + 86712ba commit 2a91189Copy full SHA for 2a91189
server/scripts/ispconfig_update.sh
@@ -15,11 +15,25 @@ _UPD=1
15
{
16
if [ -n "${_UPD}" ]
17
then
18
- exec php -q \
19
- -d disable_classes= \
20
- -d disable_functions= \
21
- -d open_basedir= \
22
- /usr/local/ispconfig/server/scripts/ispconfig_update.php
+ n=$(readlink -f ${0})
+ if [ "$(basename ${0})" == "ispconfig_update.sh" ]
+ then
+ cp -p ${n} ${n}.exec
+ chmod +x ${n}.exec
23
+ exec ${n}.exec
24
+ else
25
+ # clean up tmp .exec file
26
+ if [ "$(basename ${0})" == "ispconfig_update.sh.exec" ]; then
27
+ rm -f ${0}
28
+ fi
29
+
30
+ exec php -q \
31
+ -d disable_classes= \
32
+ -d disable_functions= \
33
+ -d open_basedir= \
34
+ /usr/local/ispconfig/server/scripts/ispconfig_update.php
35
36
37
fi
38
}
39
0 commit comments