From 00866bcda03f347d0cba4d135aaf8c52a3286c4d Mon Sep 17 00:00:00 2001 From: asandikci Date: Mon, 7 Aug 2023 08:41:35 +0300 Subject: [PATCH] chore: add information about installation scripts --- README.md | 29 +++++++++++++++++++++++++++-- scripts/install.sh | 6 ++---- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6371c48..21f5d44 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,33 @@ Ahenk Agent for Liderahenk Central Management System - Go Implementation -[Documentation](https://git.aliberksandikci.com.tr/Liderahenk/ahenk-docs/) +You can find binary packages in [Releases](/releases) section or build from source code yourself. -[Current Python Implementation](https://github.com/Pardus-LiderAhenk/ahenk/) + + +If you do not prefer to use binary packages you can also use installation scripts +Development Dependencies +```bash + go > 1.20 + git +``` + +Install with Script +```bash +wget -qO- https://git.aliberksandikci.com.tr/liderahenk/ahenk-go/raw/branch/main/scripts/install.sh | bash +``` + +### Useful Links +| Explanation | Link | +| ----------- | ---- | +| Ahenk-go documentation | [Liderahenk/ahenk-docs](https://git.aliberksandikci.com.tr/Liderahenk/ahenk-docs/) | +| Current Python Implementation of Ahenk | [Pardus-LiderAhenk/ahenk](https://github.com/Pardus-LiderAhenk/ahenk/) | diff --git a/scripts/install.sh b/scripts/install.sh index 1d36fd7..b3555eb 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -7,8 +7,7 @@ # go 1.20+ # systemd -# Change directory to main repo (cd ahenk-go) -# bash scripts/local-install.sh +# wget -qO- https://git.aliberksandikci.com.tr/liderahenk/ahenk-go/raw/branch/main/scripts/install.sh | bash ### --> Variable Set REPO_NAME="ahenk-go" @@ -32,10 +31,9 @@ echo -e "PRE-CLENING DONE\n" ### --> Building -cp -r ../ "$TEMP_DIR" cd "$TEMP_DIR" || exit -git clone "$REPO_LINK" echo "$TEMP_DIR" +git clone "$REPO_LINK" cd "$MAIN_DIR" || exit # cmd/ahenkd-go