Github bot : script beautyshied

This commit is contained in:
github-actions
2023-02-05 00:13:14 +00:00
parent e7ec40b3e3
commit 52b86b0273
2 changed files with 6 additions and 6 deletions

View File

@@ -31,9 +31,9 @@ if bashio::config.has_value "PAPERLESS_MEDIA_ROOT"; then export PAPERLESS_MEDIA_
if bashio::config.has_value "PAPERLESS_CONSUMPTION_DIR"; then export PAPERLESS_CONSUMPTION_DIR=$(bashio::config "PAPERLESS_CONSUMPTION_DIR"); fi
for folder in "$PAPERLESS_DATA_DIR" "$PAPERLESS_MEDIA_ROOT" "$PAPERLESS_CONSUMPTION_DIR"; do
mkdir -p "$folder"
chmod -R 755 "$folder"
chown -R paperless:paperless "$folder"
mkdir -p "$folder"
chmod -R 755 "$folder"
chown -R paperless:paperless "$folder"
done
###################

View File

@@ -2,9 +2,9 @@
# shellcheck shell=bash
if bashio::config.has_value 'CONFIG_LOCATION'; then
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
# Modify if it is a base directory
if [ -f "$CONFIG_LOCATION" ]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
# Modify if it is a base directory
if [ -f "$CONFIG_LOCATION" ]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi
fi
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION')