address missing points

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-10-27 12:35:42 +02:00
parent 203b17d316
commit b9ada72be3
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash
if [[ "$EUID" = 0 ]]; then
sudo -u www-data -s
sudo -u www-data -sE
fi
SUBJECT="$1"

View file

@ -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