File tree Expand file tree Collapse file tree 20 files changed +30
-30
lines changed Expand file tree Collapse file tree 20 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 7
7
RUN_AS=" $( stat -c %U /var/www/html/occ) "
8
8
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
9
9
10
- if [ " $( id -u) " == 0 ]; then
10
+ if [ " $( id -u) " = 0 ]; then
11
11
exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
12
12
else
13
13
exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 12
12
RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
13
13
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
14
14
15
- if [ " $( id -u) " == 0 ]; then
16
- exec su -p " $RUN_AS " -s /bin/sh -c ' php -f /var/www/html/cron.php' -- ' /bin/sh'
15
+ if [ " $( id -u) " = 0 ]; then
16
+ exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/cron.php' -- ' /bin/sh'
17
17
else
18
18
exec php -f /var/www/html/cron.php
19
19
fi
Original file line number Diff line number Diff line change 7
7
RUN_AS=" $( stat -c %U /var/www/html/occ) "
8
8
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
9
9
10
- if [ " $( id -u) " == 0 ]; then
10
+ if [ " $( id -u) " = 0 ]; then
11
11
exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
12
12
else
13
13
exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 12
12
RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
13
13
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
14
14
15
- if [ " $( id -u) " == 0 ]; then
16
- exec su -p " $RUN_AS " -s /bin/sh -c ' php -f /var/www/html/cron.php' -- ' /bin/sh'
15
+ if [ " $( id -u) " = 0 ]; then
16
+ exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/cron.php' -- ' /bin/sh'
17
17
else
18
18
exec php -f /var/www/html/cron.php
19
19
fi
Original file line number Diff line number Diff line change 7
7
RUN_AS=" $( stat -c %U /var/www/html/occ) "
8
8
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
9
9
10
- if [ " $( id -u) " == 0 ]; then
10
+ if [ " $( id -u) " = 0 ]; then
11
11
exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
12
12
else
13
13
exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 12
12
RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
13
13
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
14
14
15
- if [ " $( id -u) " == 0 ]; then
16
- exec su -p " $RUN_AS " -s /bin/sh -c ' php -f /var/www/html/cron.php' -- ' /bin/sh'
15
+ if [ " $( id -u) " = 0 ]; then
16
+ exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/cron.php' -- ' /bin/sh'
17
17
else
18
18
exec php -f /var/www/html/cron.php
19
19
fi
Original file line number Diff line number Diff line change 7
7
RUN_AS=" $( stat -c %U /var/www/html/occ) "
8
8
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
9
9
10
- if [ " $( id -u) " == 0 ]; then
10
+ if [ " $( id -u) " = 0 ]; then
11
11
exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
12
12
else
13
13
exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 12
12
RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
13
13
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
14
14
15
- if [ " $( id -u) " == 0 ]; then
16
- exec su -p " $RUN_AS " -s /bin/sh -c ' php -f /var/www/html/cron.php' -- ' /bin/sh'
15
+ if [ " $( id -u) " = 0 ]; then
16
+ exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/cron.php' -- ' /bin/sh'
17
17
else
18
18
exec php -f /var/www/html/cron.php
19
19
fi
Original file line number Diff line number Diff line change 7
7
RUN_AS=" $( stat -c %U /var/www/html/occ) "
8
8
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
9
9
10
- if [ " $( id -u) " == 0 ]; then
10
+ if [ " $( id -u) " = 0 ]; then
11
11
exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
12
12
else
13
13
exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 12
12
RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
13
13
[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
14
14
15
- if [ " $( id -u) " == 0 ]; then
16
- exec su -p " $RUN_AS " -s /bin/sh -c ' php -f /var/www/html/cron.php' -- ' /bin/sh'
15
+ if [ " $( id -u) " = 0 ]; then
16
+ exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/cron.php' -- ' /bin/sh'
17
17
else
18
18
exec php -f /var/www/html/cron.php
19
19
fi
You can’t perform that action at this time.
0 commit comments