mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-19 05:49:12 +02:00
Update 30-keygen
This commit is contained in:
@@ -3,14 +3,14 @@ bashio::log.info "Checking permissions..."
|
|||||||
PUID=$(bashio::config "PUID")
|
PUID=$(bashio::config "PUID")
|
||||||
PGID=$(bashio::config "PGID")
|
PGID=$(bashio::config "PGID")
|
||||||
OLDPUID=""
|
OLDPUID=""
|
||||||
OLDGUID=""
|
OLDPGID=""
|
||||||
if [ -f /data/puid ] && [ -f /data/guid ]; then
|
if [ -f /data/puid ] && [ -f /data/pgid ]; then
|
||||||
OLDPUID=$(cat /data/puid)
|
OLDPUID=$(cat /data/puid)
|
||||||
OLDGUID=$(cat /data/guid)
|
OLDPGID=$(cat /data/pgid)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$OLDPUID" != "$PUID" ] && [ "$OLDGUID" != "$GUID" ]; then
|
if [ "$OLDPUID" != "$PUID" ] && [ "$OLDPGID" != "$PGID" ]; then
|
||||||
bashio::log.info "... the user has changed from $OLDPUID to $PUID ..."
|
bashio::log.info "... the user has changed from ${OLDPUID}:${OLDPGID} to ${PUID}:${PGID} ..."
|
||||||
/defaults/nextcloud-perms.sh
|
/defaults/nextcloud-perms.sh
|
||||||
fi
|
fi
|
||||||
bashio::log.info "... done"
|
bashio::log.info "... done"
|
||||||
|
|||||||
Reference in New Issue
Block a user