Alexandre
2025-03-13 14:30:30 +01:00
committed by GitHub
parent f2df926e4c
commit c6de7c6a35
3 changed files with 14 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
- New option : skip_permissions_check to skip permissions check
## 31.0.0 (01-03-2025)
- Update to latest version from linuxserver/docker-nextcloud (changelog : https://github.com/linuxserver/docker-nextcloud/releases)

View File

@@ -148,6 +148,7 @@
"keyfile": "str",
"localdisks": "str?",
"networkdisks": "str?",
"skip_permissions_check": "bool?",
"trusted_domains": "str?",
"use_own_certs": "bool"
},
@@ -158,6 +159,6 @@
"uart": true,
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
"version": "31.0.0",
"version": "31.0.0-2",
"webui": "https://[HOST]:[PORT:443]"
}

View File

@@ -42,9 +42,18 @@ if [ -f /data/config/nginx/site-confs/default.conf ]; then
sed -i "s|front_controller_active true|front_controller_active false|g" /defaults/nginx/site-confs/default.conf.sample
fi
# Set permissions
mkdir -p "$datadirectory"
if [[ "$PUID" != "0" ]] && [[ "$PGID" != "0" ]]; then
echo "... setting permissions"
if bashio::config.true "skip_permissions_check"; then
bashio::log.yellow "--------------------------------------------"
bashio::log.yellow "Permissions check skipped : \"skip_permissions_check\" is true"
bashio::log.yellow "--------------------------------------------"
elif [[ "$PUID" != "0" ]] && [[ "$PGID" != "0" ]]; then
bashio::log.yellow "--------------------------------------------"
bashio::log.yellow "Permissions check skipped : \"PUID and PGID are 0\" is true"
bashio::log.yellow "--------------------------------------------"
else
bashio::log.yellow "... setting permissions, this might take a long time. If it takes too long at each boot, you could instead activate skip_permissions_check in the addon options"
chmod 755 -R "$datadirectory" || true
chown -R "$PUID:$PGID" "$datadirectory" || true
fi