mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-17 22:31:49 +02:00
Update 99-run.sh
This commit is contained in:
@@ -43,8 +43,11 @@ echo "Check $DATA_LOCATION folder exists"
|
|||||||
mkdir -p "$DATA_LOCATION"
|
mkdir -p "$DATA_LOCATION"
|
||||||
|
|
||||||
echo "Setting permissions"
|
echo "Setting permissions"
|
||||||
chown -R "$(bashio::config 'PUID'):$(bashio::config 'PGID')" "$DATA_LOCATION"
|
if bashio::config.has_value 'PUID'; then
|
||||||
chmod -R 755 "$DATA_LOCATION"
|
chown -R "$(bashio::config 'PUID'):$(bashio::config 'PGID')" "$DATA_LOCATION"
|
||||||
|
chown -R "$(bashio::config 'PUID'):$(bashio::config 'PGID')" /shared
|
||||||
|
chmod -R 755 "$DATA_LOCATION"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Creating symlink"
|
echo "Creating symlink"
|
||||||
ln -sf "$DATA_LOCATION" /shared
|
ln -sf "$DATA_LOCATION" /shared
|
||||||
|
|||||||
Reference in New Issue
Block a user