mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 02:01:52 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -77,7 +77,7 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# if Fail test without PUID and PGID
|
# if Fail test without PUID and PGID
|
||||||
if [ "$MOUNTED" = false ]; then
|
if [ "$MOUNTED" = false ]; then
|
||||||
mount -t cifs -o rw,username="$CIFS_USERNAME",password="${CIFS_PASSWORD}" "$disk" /mnt/"$diskname" && MOUNTED=true || MOUNTED=false
|
mount -t cifs -o rw,username="$CIFS_USERNAME",password="${CIFS_PASSWORD}" "$disk" /mnt/"$diskname" && MOUNTED=true || MOUNTED=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Messages
|
# Messages
|
||||||
|
|||||||
@@ -6,26 +6,26 @@ if bashio::config.has_value 'PGID'; then PGID="$(bashio::config 'PGID')"; fi
|
|||||||
|
|
||||||
# Enable watch folder
|
# Enable watch folder
|
||||||
if bashio::config.has_value "watch_path"; then
|
if bashio::config.has_value "watch_path"; then
|
||||||
# Enables folders
|
# Enables folders
|
||||||
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
||||||
# Set downloads path
|
# Set downloads path
|
||||||
sed -i "s|_path|_pth|g" /config/unpackerr.conf
|
sed -i "s|_path|_pth|g" /config/unpackerr.conf
|
||||||
sed -i "/path =/c path = \"$(bashio::config 'watch_path')\"" /config/unpackerr.conf
|
sed -i "/path =/c path = \"$(bashio::config 'watch_path')\"" /config/unpackerr.conf
|
||||||
sed -i "s|_pth|_path|g" /config/unpackerr.conf
|
sed -i "s|_pth|_path|g" /config/unpackerr.conf
|
||||||
# Make path
|
# Make path
|
||||||
mkdir -p "$(bashio::config 'watch_path')"
|
mkdir -p "$(bashio::config 'watch_path')"
|
||||||
# Set permission
|
# Set permission
|
||||||
chown -R $PUID:$PGID "$(bashio::config 'watch_path')"
|
chown -R $PUID:$PGID "$(bashio::config 'watch_path')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable extraction folder
|
# Enable extraction folder
|
||||||
if bashio::config.has_value "extraction_path"; then
|
if bashio::config.has_value "extraction_path"; then
|
||||||
# Enables folders
|
# Enables folders
|
||||||
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
||||||
# Set extraction path
|
# Set extraction path
|
||||||
sed -i "/extract_path =/c extract_path = \"$(bashio::config 'extraction_path')\"" /config/unpackerr.conf
|
sed -i "/extract_path =/c extract_path = \"$(bashio::config 'extraction_path')\"" /config/unpackerr.conf
|
||||||
# Make path
|
# Make path
|
||||||
mkdir -p "$(bashio::config 'extraction_path')"
|
mkdir -p "$(bashio::config 'extraction_path')"
|
||||||
# Set permission
|
# Set permission
|
||||||
chown -R $PUID:$PGID "$(bashio::config 'extraction_path')"
|
chown -R $PUID:$PGID "$(bashio::config 'extraction_path')"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user