Skip to content

Commit

Permalink
Correctly create config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Jul 17, 2024
1 parent b7311e4 commit a1797c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpi/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
set -Eeuo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
CONFIG_ENV_FILE="$HOME/.config/ssl-remote-control/remote-control-config.env"
CONFIG_DIR="$HOME/.config/ssl-remote-control"
CONFIG_ENV_FILE="$CONFIG_DIR/remote-control-config.env"
SRC_VERSION=${1:-}

function updateSystem() {
Expand All @@ -16,7 +17,7 @@ function installService() {
cp "$SCRIPT_DIR/ssl-remote-control.service" ~/.local/share/systemd/user/ssl-remote-control.service
systemctl --user enable ssl-remote-control.service
if [[ ! -f "${CONFIG_ENV_FILE}" ]]; then
mkdir -p "${CONFIG_ENV_FILE}"
mkdir -p "${CONFIG_DIR}"
echo "Copying remote control configuration file to ${CONFIG_ENV_FILE}"
cp "${SCRIPT_DIR}/remote-control-config.env" "${CONFIG_ENV_FILE}"
else
Expand Down

0 comments on commit a1797c1

Please sign in to comment.