mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-25 06:14:38 +08:00
address missing points
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
203b17d316
commit
b9ada72be3
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ "$EUID" = 0 ]]; then
|
||||
sudo -u www-data -s
|
||||
sudo -u www-data -sE
|
||||
fi
|
||||
|
||||
SUBJECT="$1"
|
||||
|
|
|
@ -34,7 +34,7 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/this-is-a-test-file" ]; then
|
|||
chown -R www-data:root "$NEXTCLOUD_DATA_DIR"
|
||||
chmod 750 -R "$NEXTCLOUD_DATA_DIR"
|
||||
fi
|
||||
rm -f "$NEXTCLOUD_DATA_DIR/this-is-a-test-file"
|
||||
sudo -u www-data rm -f "$NEXTCLOUD_DATA_DIR/this-is-a-test-file"
|
||||
|
||||
# Run original entrypoint
|
||||
if ! sudo -u www-data bash /entrypoint.sh; then
|
||||
|
|
Loading…
Reference in a new issue