@@ -47,19 +47,13 @@ msg_ok "Installed Node.js"
4747msg_info " Setup ${APPLICATION} (Patience)"
4848temp_file=$( mktemp)
4949RELEASE=$( curl -fsSL https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep " tag_name" | awk ' {print substr($2, 3, length($2)-4) }' )
50- curl -fsSL " https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE} .tar.gz" -o $temp_file
51- tar -xzf $temp_file
52- mv GoMFT-${RELEASE} / /opt/gomft
50+ curl -fsSL " https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE} .tar.gz" -o " $temp_file "
51+ tar -xzf " $temp_file "
52+ mv GoMFT-" ${RELEASE} " / /opt/gomft
5353cd /opt/gomft
54- $STD npm ci
55- $STD node build.js
56- $STD go mod download
5754$STD go install github.com/a-h/templ/cmd/templ@latest
58- $STD go get -u github.com/a-h/templ
59- $STD $HOME /go/bin/templ generate
60- export CGO_ENABLED=1
61- export GOOS=linux
62- $STD go build -o gomft
55+ $STD " $HOME " /go/bin/templ generate
56+ $STD go build -o gomft main.go
6357chmod +x /opt/gomft/gomft
6458JWT_SECRET_KEY=$( openssl rand -base64 24 | tr -d ' /+=' )
6559
@@ -83,7 +77,7 @@ EMAIL_USERNAME=smtp_username
8377EMAIL_PASSWORD=smtp_password
8478EOF
8579
86- echo " ${RELEASE} " > /opt/${APPLICATION} _version.txt
80+ echo " ${RELEASE} " > /opt/" ${APPLICATION} " _version.txt
8781msg_ok " Setup ${APPLICATION} "
8882
8983msg_info " Creating Service"
@@ -109,7 +103,7 @@ motd_ssh
109103customize
110104
111105msg_info " Cleaning up"
112- rm -f $temp_file
106+ rm -f " $temp_file "
113107$STD apt-get -y autoremove
114108$STD apt-get -y autoclean
115109msg_ok " Cleaned"
0 commit comments