mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
option skip permissions https://github.com/alexbelgium/hassio-addons/issues/1807#issuecomment-2721206933
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
- New option : skip_permissions_check to skip permissions check
|
||||||
|
|
||||||
## 31.0.0 (01-03-2025)
|
## 31.0.0 (01-03-2025)
|
||||||
- Update to latest version from linuxserver/docker-nextcloud (changelog : https://github.com/linuxserver/docker-nextcloud/releases)
|
- Update to latest version from linuxserver/docker-nextcloud (changelog : https://github.com/linuxserver/docker-nextcloud/releases)
|
||||||
|
|||||||
@@ -148,6 +148,7 @@
|
|||||||
"keyfile": "str",
|
"keyfile": "str",
|
||||||
"localdisks": "str?",
|
"localdisks": "str?",
|
||||||
"networkdisks": "str?",
|
"networkdisks": "str?",
|
||||||
|
"skip_permissions_check": "bool?",
|
||||||
"trusted_domains": "str?",
|
"trusted_domains": "str?",
|
||||||
"use_own_certs": "bool"
|
"use_own_certs": "bool"
|
||||||
},
|
},
|
||||||
@@ -158,6 +159,6 @@
|
|||||||
"uart": true,
|
"uart": true,
|
||||||
"udev": true,
|
"udev": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
|
||||||
"version": "31.0.0",
|
"version": "31.0.0-2",
|
||||||
"webui": "https://[HOST]:[PORT:443]"
|
"webui": "https://[HOST]:[PORT:443]"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
sed -i "s|front_controller_active true|front_controller_active false|g" /defaults/nginx/site-confs/default.conf.sample
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set permissions
|
||||||
mkdir -p "$datadirectory"
|
mkdir -p "$datadirectory"
|
||||||
if [[ "$PUID" != "0" ]] && [[ "$PGID" != "0" ]]; then
|
if bashio::config.true "skip_permissions_check"; then
|
||||||
echo "... setting permissions"
|
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
|
chmod 755 -R "$datadirectory" || true
|
||||||
chown -R "$PUID:$PGID" "$datadirectory" || true
|
chown -R "$PUID:$PGID" "$datadirectory" || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user