diff --git a/hampackserverupdate b/hampackserverupdate index 4b5fd4e..d02a9b8 100755 --- a/hampackserverupdate +++ b/hampackserverupdate @@ -50,13 +50,13 @@ fi # Updating the repo and installing... echo "Updating HamPackServer..." -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +REPO_DIR="$HOME/.local/share/HamPackServer" echo "Pulling latest HamPackServer repo..." -git -C "$SCRIPT_DIR" pull +git -C "$REPO_DIR" pull echo "Running install.sh..." -bash "$SCRIPT_DIR/install.sh" +bash "$REPO_DIR/install.sh" # Check whether the running kernel matches the installed modules — if not, a # newer kernel was installed during this run and a reboot is required