mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 17:46:00 +02:00
Update 00-folders.sh
This commit is contained in:
@@ -17,8 +17,6 @@ change_folders () {
|
|||||||
ORIGINALLOCATION=$2
|
ORIGINALLOCATION=$2
|
||||||
TYPE=$3
|
TYPE=$3
|
||||||
|
|
||||||
if [ ! -d "$CONFIGLOCATION" ]; then
|
|
||||||
|
|
||||||
# Inform
|
# Inform
|
||||||
bashio::log.info "Setting $TYPE location to $CONFIGLOCATION"
|
bashio::log.info "Setting $TYPE location to $CONFIGLOCATION"
|
||||||
|
|
||||||
@@ -39,10 +37,6 @@ change_folders () {
|
|||||||
# Set permissions
|
# Set permissions
|
||||||
echo "Setting ownership to $PUID:$PGID" && chown -R "$PUID":"$PGID" "$CONFIGLOCATION"
|
echo "Setting ownership to $PUID:$PGID" && chown -R "$PUID":"$PGID" "$CONFIGLOCATION"
|
||||||
|
|
||||||
else
|
|
||||||
bashio::log.nok "Your $TYPE $CONFIGLOCATION doesn't exists"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
########################
|
########################
|
||||||
|
|||||||
Reference in New Issue
Block a user