From b0e1816bf9ceb28adff1483fef33dd9e31ff83d5 Mon Sep 17 00:00:00 2001 From: Bkeenke <128972800+bkeenke@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:30:26 +0300 Subject: [PATCH] Update init.sh --- init.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/init.sh b/init.sh index d3fc7a9..71b9fc8 100644 --- a/init.sh +++ b/init.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash set -e @@ -83,12 +83,12 @@ install_package () { fi } - install_go() { rm -rf /opt/go && mkdir -p /opt/go && cd /opt/go wget https://go.dev/dl/go1.22.2.linux-amd64.tar.gz rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.2.linux-amd64.tar.gz - cp /usr/local/go/bin/go /usr/bin && cp /usr/local/go/bin/gofmt /usr/bin + echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile + source /etc/profile && source ~/.profile if go version >/dev/null 2>&1; then echo "Golang installed" else @@ -96,6 +96,13 @@ install_go() { exit 1 fi } +install_awg() { + +} +install_awg_tools() { + +} + case "$1" in install) @@ -103,3 +110,4 @@ case "$1" in *) usage;; esac +