mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 19:10:32 +02:00
Update 30-keygen
This commit is contained in:
@@ -1,19 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
bashio::log.info "Checking permissions..."
|
|
||||||
PUID=$(bashio::config "PUID")
|
|
||||||
PGID=$(bashio::config "PGID")
|
|
||||||
OLDPUID=""
|
|
||||||
OLDPGID=""
|
|
||||||
if [ -f /data/puid ] && [ -f /data/pgid ]; then
|
|
||||||
OLDPUID=$(cat /data/puid)
|
|
||||||
OLDPGID=$(cat /data/pgid)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$OLDPUID" != "$PUID" ] && [ "$OLDPGID" != "$PGID" ]; then
|
|
||||||
bashio::log.info "... the user has changed from ${OLDPUID}:${OLDPGID} to ${PUID}:${PGID} ..."
|
|
||||||
/defaults/nextcloud-perms.sh
|
|
||||||
fi
|
|
||||||
bashio::log.info "... done"
|
|
||||||
|
|
||||||
#Check if files exist
|
#Check if files exist
|
||||||
if bashio::config.true 'use_own_certs'; then
|
if bashio::config.true 'use_own_certs'; then
|
||||||
|
|||||||
Reference in New Issue
Block a user