mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00: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
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "$EUID" = 0 ]]; then
|
if [[ "$EUID" = 0 ]]; then
|
||||||
sudo -u www-data -s
|
sudo -u www-data -sE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SUBJECT="$1"
|
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"
|
chown -R www-data:root "$NEXTCLOUD_DATA_DIR"
|
||||||
chmod 750 -R "$NEXTCLOUD_DATA_DIR"
|
chmod 750 -R "$NEXTCLOUD_DATA_DIR"
|
||||||
fi
|
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
|
# Run original entrypoint
|
||||||
if ! sudo -u www-data bash /entrypoint.sh; then
|
if ! sudo -u www-data bash /entrypoint.sh; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue