Skip to content

Commit

Permalink
update config paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Mar 2, 2024
1 parent 849459e commit 2191ba5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions extra-scripts/backup_appdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@ appdata_dir2=

config_file() {
script_path=$(dirname "$0")
parent_dir=$(dirname "$script_path")
if [ -n "$DOCKER_ENV" ]; then
config_dir="${CONFIG_DIR:-$parent_dir/config/}"
else
config_dir="${parent_dir}/config"
fi
config_file="${config_dir}/backup_appdata.conf"
config_file="${script_path}/backup_appdata.conf"

echo "Config File: $config_file"

Expand Down
9 changes: 1 addition & 8 deletions extra-scripts/backup_plex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,8 @@ config_dir_setup() {
config_dir=${config_dir%/}

script_path=$(dirname "$0")
parent_dir=$(dirname "$script_path")

if [ -n "$DOCKER_ENV" ]; then
config_dir="/config"
else
config_dir="${Cconfig_dir:-$parent_dir/config}"
fi

config_file="$config_dir/backup-plex.conf"
config_file="$script_path/backup-plex.conf"
}

config_file() {
Expand Down

0 comments on commit 2191ba5

Please sign in to comment.