File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,29 +14,28 @@ network_check
1414update_os
1515
1616msg_info " Installing Dependencies"
17- ensure_dependencies build-essential
18- setup_go
17+ $STD apt install -y build-essential
1918msg_ok " Installed Dependencies"
2019
20+ setup_go
2121fetch_and_deploy_gh_release " koffan" " PanSalut/Koffan" " tarball"
2222
2323msg_info " Building Koffan"
2424cd /opt/koffan
25- go build -o koffan main.go
25+ $STD go build -o koffan main.go
2626msg_ok " Built Koffan"
2727
2828msg_info " Configuring Koffan"
29- PASSWORD =$( openssl rand -base64 12)
29+ APP_PASSW =$( openssl rand -base64 12)
3030mkdir /opt/koffan/data
3131cat << EOF >/opt/koffan/data/.env
3232APP_ENV=production
33- APP_PASSWORD=${PASSWORD }
33+ APP_PASSWORD=${APP_PASSW }
3434PORT=3000
3535DB_PATH=/opt/koffan/data/shopping.db
3636EOF
37-
3837cat << EOF >~/koffan.creds
39- Password: ${PASSWORD }
38+ Password: ${APP_PASSW }
4039EOF
4140msg_ok " Configured Koffan"
4241
You can’t perform that action at this time.
0 commit comments