From a519284f7c4c480894628c980af5f532d1bbf043 Mon Sep 17 00:00:00 2001 From: KeyArgo Date: Sat, 30 Sep 2023 19:47:45 -0600 Subject: [PATCH] Commenting out cleanup for bug troubleshooting --- install.sh | 1 - run-seedbox.sh | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index f572b35..e3ea5cb 100644 --- a/install.sh +++ b/install.sh @@ -191,4 +191,3 @@ SEEDBOX_DIR=$(pwd) sudo bash init.sh # Run run-seedbox.sh -sudo bash run-seedbox.sh \ No newline at end of file diff --git a/run-seedbox.sh b/run-seedbox.sh index 96bb827..a6a0c02 100644 --- a/run-seedbox.sh +++ b/run-seedbox.sh @@ -26,10 +26,10 @@ for i in "$@"; do esac done -cleanup_on_exit() { - rm -f rules.props *-vpn.props config.json -} -trap cleanup_on_exit EXIT +#cleanup_on_exit() { +# rm -f rules.props *-vpn.props config.json +#} +#trap cleanup_on_exit EXIT echo-debug() { if [[ ${DEBUG} == "1" ]]; then echo "$@"; fi @@ -174,7 +174,7 @@ for json in $(yq eval -o json config.yaml | jq -c ".services[]"); do # Take into account explicit filename if specified in config customFile=$(echo $json | jq -r .customFile) file="$name.yaml" - if [[ ${customFile} != "null" ]]; then + if [[ ${customFile} != "null" ]]; then file=${customFile} fi echo-debug "[$0] File: \"$file\"..." @@ -257,7 +257,7 @@ for json in $(yq eval -o json config.yaml | jq -c ".services[]"); do if echo ${traefikService} | grep -vq "@"; then echo "http.services.${ruleId}.loadBalancer.servers.0.url: ${internalScheme}://${backendHost}:${internalPort}" >> rules.props fi - + done done @@ -293,4 +293,4 @@ docker image prune -af docker volume prune -f echo "[$0] ***** Done! *****" -exit 0 \ No newline at end of file +exit 0