From b4ff294a83509c03feb996c5a3a39cdc20e847ff Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 16 Oct 2022 00:20:03 +0000 Subject: [PATCH] Github bot : script beautyshied --- .templates/92-smb_mounts.sh | 2 +- unpackerr/rootfs/etc/cont-init.d/99-config.sh | 36 +++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.templates/92-smb_mounts.sh b/.templates/92-smb_mounts.sh index b91cbad18..58712e18e 100644 --- a/.templates/92-smb_mounts.sh +++ b/.templates/92-smb_mounts.sh @@ -77,7 +77,7 @@ if bashio::config.has_value 'networkdisks'; then # if Fail test without PUID and PGID 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 # Messages diff --git a/unpackerr/rootfs/etc/cont-init.d/99-config.sh b/unpackerr/rootfs/etc/cont-init.d/99-config.sh index fe006411a..b56634407 100644 --- a/unpackerr/rootfs/etc/cont-init.d/99-config.sh +++ b/unpackerr/rootfs/etc/cont-init.d/99-config.sh @@ -6,26 +6,26 @@ if bashio::config.has_value 'PGID'; then PGID="$(bashio::config 'PGID')"; fi # Enable watch folder if bashio::config.has_value "watch_path"; then - # Enables folders - sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf - # Set downloads path - sed -i "s|_path|_pth|g" /config/unpackerr.conf - sed -i "/path =/c path = \"$(bashio::config 'watch_path')\"" /config/unpackerr.conf - sed -i "s|_pth|_path|g" /config/unpackerr.conf - # Make path - mkdir -p "$(bashio::config 'watch_path')" - # Set permission - chown -R $PUID:$PGID "$(bashio::config 'watch_path')" + # Enables folders + sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf + # Set downloads path + sed -i "s|_path|_pth|g" /config/unpackerr.conf + sed -i "/path =/c path = \"$(bashio::config 'watch_path')\"" /config/unpackerr.conf + sed -i "s|_pth|_path|g" /config/unpackerr.conf + # Make path + mkdir -p "$(bashio::config 'watch_path')" + # Set permission + chown -R $PUID:$PGID "$(bashio::config 'watch_path')" fi # Enable extraction folder if bashio::config.has_value "extraction_path"; then - # Enables folders - sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf - # Set extraction path - sed -i "/extract_path =/c extract_path = \"$(bashio::config 'extraction_path')\"" /config/unpackerr.conf - # Make path - mkdir -p "$(bashio::config 'extraction_path')" - # Set permission - chown -R $PUID:$PGID "$(bashio::config 'extraction_path')" + # Enables folders + sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf + # Set extraction path + sed -i "/extract_path =/c extract_path = \"$(bashio::config 'extraction_path')\"" /config/unpackerr.conf + # Make path + mkdir -p "$(bashio::config 'extraction_path')" + # Set permission + chown -R $PUID:$PGID "$(bashio::config 'extraction_path')" fi