mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-11 01:13:41 +08:00
fix sudo command
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
6458bf6613
commit
a03fad2c33
3 changed files with 3 additions and 3 deletions
|
@ -253,6 +253,6 @@ RUN echo "root:$(openssl rand -base64 12)" | chpasswd
|
|||
|
||||
USER root
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
CMD ["sudo", "-uE", "www-data", "/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
||||
CMD ["sudo", "-E", "-u", "www-data", "/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
||||
|
||||
HEALTHCHECK CMD (sudo -u www-data nc -z localhost 9000 && sudo -u www-data nc -z localhost 7867) || exit 1
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ "$EUID" = 0 ]]; then
|
||||
sudo -u www-data -sE
|
||||
sudo -u www-data -s -E
|
||||
fi
|
||||
|
||||
SUBJECT="$1"
|
||||
|
|
|
@ -37,7 +37,7 @@ fi
|
|||
sudo -u www-data rm -f "$NEXTCLOUD_DATA_DIR/this-is-a-test-file"
|
||||
|
||||
# Run original entrypoint
|
||||
if ! sudo -uE www-data bash /entrypoint.sh; then
|
||||
if ! sudo -E -u www-data bash /entrypoint.sh; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue