-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathispconfig_update.sh
More file actions
39 lines (32 loc) · 1002 Bytes
/
ispconfig_update.sh
File metadata and controls
39 lines (32 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
_UPD=1
##################################################
##################################################
##################################################
##################################################
##################################################
##################################################
# padding handles script being overwritten during updates
# see https://git.ispconfig.org/ispconfig/ispconfig3/issues/4227
{
if [ -n "${_UPD}" ]
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 \
-d disable_classes= \
-d disable_functions= \
-d open_basedir= \
/usr/local/ispconfig/server/scripts/ispconfig_update.php
fi
fi
}