mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01:00
Update 99-run.sh
This commit is contained in:
@@ -41,7 +41,10 @@ DATA_LOCATION=$(bashio::config 'data_location')
|
|||||||
|
|
||||||
echo "Check $DATA_LOCATION folder exists"
|
echo "Check $DATA_LOCATION folder exists"
|
||||||
mkdir -p "$DATA_LOCATION"
|
mkdir -p "$DATA_LOCATION"
|
||||||
mkdir -p "$DATA_LOCATION"/media
|
mkdir -p /shared/media
|
||||||
|
|
||||||
|
chmod -R 777 "$DATA_LOCATION"
|
||||||
|
chmod -R 777 "/shared"
|
||||||
|
|
||||||
echo "Setting permissions"
|
echo "Setting permissions"
|
||||||
if bashio::config.has_value 'PUID'; then
|
if bashio::config.has_value 'PUID'; then
|
||||||
@@ -49,8 +52,6 @@ if bashio::config.has_value 'PUID'; then
|
|||||||
chown -R "$(bashio::config 'PUID'):$(bashio::config 'PGID')" /shared
|
chown -R "$(bashio::config 'PUID'):$(bashio::config 'PGID')" /shared
|
||||||
fi || true
|
fi || true
|
||||||
|
|
||||||
chmod -R 755 "$DATA_LOCATION"
|
|
||||||
|
|
||||||
echo "Creating symlink"
|
echo "Creating symlink"
|
||||||
ln -sf "$DATA_LOCATION" /shared
|
ln -sf "$DATA_LOCATION" /shared
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user