Fix docker command override.

pull/1567/merge
Roger A. Light 5 years ago
parent 124225d02b
commit ac3b30ca4f

@ -1,4 +1,10 @@
#!/bin/ash #!/bin/ash
set -e set -e
# Set permissions
user="$(id -u)"
if [ "$user" = '0' ]; then
[ -d "/mosquitto" ] && chown -R mosquitto:mosquitto /mosquitto
fi
exec "$@" exec "$@"

@ -1,15 +1,10 @@
#!/bin/ash #!/bin/ash
set -e set -e
docker_set_permissions() { # Set permissions
local user; user="$(id -u)" user="$(id -u)"
if [ "$user" = '0' ]; then
if [ "$user" = '0' ]; then [ -d "/mosquitto" ] && chown -R mosquitto:mosquitto /mosquitto
chown -R mosquitto:mosquitto /mosquitto fi
fi
}
docker_set_permissions()
exec "$@" exec "$@"

@ -1,15 +1,10 @@
#!/bin/ash #!/bin/ash
set -e set -e
docker_set_permissions() { # Set permissions
local user; user="$(id -u)" user="$(id -u)"
if [ "$user" = '0' ]; then
if [ "$user" = '0' ]; then [ -d "/mosquitto" ] && chown -R mosquitto:mosquitto /mosquitto
chown -R mosquitto:mosquitto /mosquitto fi
fi
}
docker_set_permissions()
exec "$@" exec "$@"

@ -1,15 +1,10 @@
#!/bin/ash #!/bin/ash
set -e set -e
docker_set_permissions() { # Set permissions
local user; user="$(id -u)" user="$(id -u)"
if [ "$user" = '0' ]; then
if [ "$user" = '0' ]; then [ -d "/mosquitto" ] && chown -R mosquitto:mosquitto /mosquitto
chown -R mosquitto:mosquitto /mosquitto fi
fi
}
docker_set_permissions()
exec "$@" exec "$@"

Loading…
Cancel
Save