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 77RUN_AS=" $( stat -c %U /var/www/html/occ) "
88[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
99
10- if [ " $( id -u) " == 0 ]; then
10+ if [ " $( id -u) " = 0 ]; then
1111 exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
1212else
1313 exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 1212RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
1313[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
1414
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'
1717else
1818 exec php -f /var/www/html/cron.php
1919fi
Original file line number Diff line number Diff line change 77RUN_AS=" $( stat -c %U /var/www/html/occ) "
88[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
99
10- if [ " $( id -u) " == 0 ]; then
10+ if [ " $( id -u) " = 0 ]; then
1111 exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
1212else
1313 exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 1212RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
1313[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
1414
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'
1717else
1818 exec php -f /var/www/html/cron.php
1919fi
Original file line number Diff line number Diff line change 77RUN_AS=" $( stat -c %U /var/www/html/occ) "
88[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
99
10- if [ " $( id -u) " == 0 ]; then
10+ if [ " $( id -u) " = 0 ]; then
1111 exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
1212else
1313 exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 1212RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
1313[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
1414
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'
1717else
1818 exec php -f /var/www/html/cron.php
1919fi
Original file line number Diff line number Diff line change 77RUN_AS=" $( stat -c %U /var/www/html/occ) "
88[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
99
10- if [ " $( id -u) " == 0 ]; then
10+ if [ " $( id -u) " = 0 ]; then
1111 exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
1212else
1313 exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 1212RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
1313[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
1414
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'
1717else
1818 exec php -f /var/www/html/cron.php
1919fi
Original file line number Diff line number Diff line change 77RUN_AS=" $( stat -c %U /var/www/html/occ) "
88[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ\` : Failed to determine www-data user" >&2 ; exit 1 ; }
99
10- if [ " $( id -u) " == 0 ]; then
10+ if [ " $( id -u) " = 0 ]; then
1111 exec su -p " $RUN_AS " -s /bin/sh -c ' exec php -f /var/www/html/occ -- "$@"' -- ' /bin/sh' " $@ "
1212else
1313 exec php -f /var/www/html/occ -- " $@ "
Original file line number Diff line number Diff line change 1212RUN_AS=" $( stat -c %U /var/www/html/cron.php) "
1313[ -n " $RUN_AS " ] && [ " $RUN_AS " != " UNKNOWN" ] || { echo " Unable to run \` occ-cron\` : Failed to determine www-data user" >&2 ; exit 1 ; }
1414
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'
1717else
1818 exec php -f /var/www/html/cron.php
1919fi
You can’t perform that action at this time.
0 commit comments