diff --git a/setup/README.md b/setup/README.md index 1185f09898..471b05972e 100644 --- a/setup/README.md +++ b/setup/README.md @@ -4,6 +4,9 @@ This script installs all the dependencies (and system configurations) that are necessary for the binary to run. Since this file already gets called from within the other scripts, it is not required to call this yourself. +> [!WARNING] +> Running this script has to be done with `bash`, as the sourcing of the _~/.bashrc_-file may lead to implications if it's run with `sh`. + ## upgrade.sh > [!WARNING] diff --git a/setup/dependencies.sh b/setup/dependencies.sh index acb29c6869..2e59fae635 100644 --- a/setup/dependencies.sh +++ b/setup/dependencies.sh @@ -1,5 +1,8 @@ #!/bin/bash +# This should be run with 'bash', as the sourcing of the .bashrc file may lead to implications +# if it's run with 'sh'. + # Helper-function: adds a line to a file if it doesn't already exist (to prevent duplicates) add_line_to_file() { local line="$1" diff --git a/setup/state-sync.sh b/setup/state-sync.sh index 6c39f60416..ca152b2e12 100644 --- a/setup/state-sync.sh +++ b/setup/state-sync.sh @@ -60,7 +60,7 @@ systemctl stop $BINARY_NAME cd $REPO_ROOT # System update and installation of dependencies -sh ./setup/dependencies.sh +bash ./setup/dependencies.sh # Building binaries go mod tidy diff --git a/setup/upgrade.sh b/setup/upgrade.sh index 8aa8f03398..f8820f67e1 100644 --- a/setup/upgrade.sh +++ b/setup/upgrade.sh @@ -43,7 +43,7 @@ systemctl stop $BINARY_NAME cd $REPO_ROOT # System update and installation of dependencies -sh ./setup/dependencies.sh +bash ./setup/dependencies.sh # Create a backup of old config files cp $CONFIG_DIR/app.toml $CONFIG_DIR/app.toml.bak