Skip to content

Commit

Permalink
fix longstanding bug in 'freifunk-manuell-update' if the current pwd …
Browse files Browse the repository at this point in the history
…equal INSTALL_DIR
  • Loading branch information
cremesk committed Dec 6, 2024
1 parent cf4ac59 commit a971649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ To fix your current installation you just need to install the mentioned packages
After installing the packages, `freifunk-call` should be executable again.

- fix debian 11 installation
- fix longstanding bug in 'freifunk-manuell-update' if the current pwd equal INSTALL_DIR
- update digitalcourage dns forwarder also in default uci config
- add config option to disable the speedtest plugin
- revision/optimization of some scripts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ CUSTOM_INSTALL_DIR="$(uci -qX get ffdd.sys.install_dir)"
[ -n "$CUSTOM_INSTALL_DIR" ] && [ "$CUSTOM_INSTALL_DIR" != "$INSTALL_DIR" ] && INSTALL_DIR="$CUSTOM_INSTALL_DIR"


[ "$(pwd)" == "$INSTALL_DIR" ] && cd /srv
[ -d "$INSTALL_DIR" ] && rm -rf "$INSTALL_DIR"

git clone "$REPO_URL" "$INSTALL_DIR"
cd "$INSTALL_DIR" && git checkout "$REV"
git --git-dir="$INSTALL_DIR"/.git checkout "$REV"

"$INSTALL_DIR"/init_server.sh -i

Expand Down

0 comments on commit a971649

Please sign in to comment.