mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-09 23:40:59 +02:00
Update 30-keygen
This commit is contained in:
@@ -1,6 +1,18 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
bashio::log.info "Updating permissions..."
|
bashio::log.info "Checking permissions..."
|
||||||
|
PUID=$(bashio::config "PUID")
|
||||||
|
PGID=$(bashio::config "PGID")
|
||||||
|
OLDPUID=""
|
||||||
|
OLDGUID=""
|
||||||
|
if [ -f /data/puid ] && [ -f /data/guid ]; then
|
||||||
|
OLDPUID=$(cat /data/puid)
|
||||||
|
OLDGUID=$(cat /data/guid)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$OLDPUID" != "$PUID" ] && [ "$OLDGUID" != "$GUID" ]; then
|
||||||
|
bashio::log.info "... the user has changed from $OLDPUID to $PUID ..."
|
||||||
/defaults/nextcloud-perms.sh
|
/defaults/nextcloud-perms.sh
|
||||||
|
fi
|
||||||
bashio::log.info "... done"
|
bashio::log.info "... done"
|
||||||
|
|
||||||
#Check if files exist
|
#Check if files exist
|
||||||
|
|||||||
Reference in New Issue
Block a user