Skip to content

Commit 2beb890

Browse files
'Add new script' (#7900)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
1 parent 308897f commit 2beb890

File tree

4 files changed

+158
-0
lines changed

4 files changed

+158
-0
lines changed

ct/goaway.sh

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Slaviša Arežina (tremor021)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/pommee/goaway
7+
8+
APP="GoAway"
9+
var_tags="${var_tags:-network}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-1024}"
12+
var_disk="${var_disk:-4}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/goaway ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
31+
if check_for_gh_release "goaway" "pommee/goaway"; then
32+
msg_info "Stopping Services"
33+
systemctl stop goaway
34+
msg_ok "Stopped Services"
35+
36+
fetch_and_deploy_gh_release "goaway" "pommee/goaway" "prebuild" "latest" "/opt/goaway" "goaway_*_linux_amd64.tar.gz"
37+
38+
msg_info "Starting Services"
39+
systemctl start goaway
40+
msg_ok "Started Services"
41+
42+
msg_ok "Updated Successfully"
43+
fi
44+
exit
45+
}
46+
47+
start
48+
build_container
49+
description
50+
51+
msg_ok "Completed Successfully!\n"
52+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
53+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
54+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"

ct/headers/goaway

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
______ ___
2+
/ ____/___ / |_ ______ ___ __
3+
/ / __/ __ \/ /| | | /| / / __ `/ / / /
4+
/ /_/ / /_/ / ___ | |/ |/ / /_/ / /_/ /
5+
\____/\____/_/ |_|__/|__/\__,_/\__, /
6+
/____/

frontend/public/json/goaway.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "GoAway",
3+
"slug": "goaway",
4+
"categories": [
5+
5
6+
],
7+
"date_created": "2025-09-12",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 8080,
12+
"documentation": "https://github.com/pommee/goaway#configuration-file",
13+
"config_path": "/opt/goaway/config/settings.yaml",
14+
"website": "https://github.com/pommee/goaway",
15+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/goaway.webp",
16+
"description": "Lightweight DNS sinkhole written in Go with a modern dashboard client. Very good looking new alternative to Pi-Hole and Adguard Home.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/goaway.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 1024,
24+
"hdd": 4,
25+
"os": "Debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": [
35+
{
36+
"text": "Type `cat ~/goaway.creds` to see login credentials.",
37+
"type": "info"
38+
}
39+
]
40+
}

install/goaway-install.sh

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Slaviša Arežina (tremor021)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/pommee/goaway
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD apt-get install -y net-tools
18+
msg_ok "Installed Dependencies"
19+
20+
fetch_and_deploy_gh_release "goaway" "pommee/goaway" "prebuild" "latest" "/opt/goaway" "goaway_*_linux_amd64.tar.gz"
21+
22+
msg_info "Creating Service"
23+
cat <<EOF >/etc/systemd/system/goaway.service
24+
[Unit]
25+
Description=GoAway Service
26+
After=network.target
27+
28+
[Service]
29+
Type=simple
30+
User=root
31+
WorkingDirectory=/opt/goaway
32+
ExecStart=/opt/goaway/goaway
33+
StandardOutput=file:/var/log/goaway.log
34+
StandardError=inherit
35+
Restart=on-failure
36+
RestartSec=5
37+
38+
[Install]
39+
WantedBy=multi-user.target
40+
EOF
41+
systemctl enable -q --now goaway
42+
sleep 10
43+
ADMIN_PASS=$(awk -F': ' '/Randomly generated admin password:/ {print $2}' /var/log/goaway.log | tail -n1)
44+
{
45+
echo "GoAway Credentials"
46+
echo "Admin User: admin"
47+
echo "Admin Password: $ADMIN_PASS"
48+
} >>~/goaway.creds
49+
msg_ok "Service Created"
50+
51+
motd_ssh
52+
customize
53+
54+
msg_info "Cleaning up"
55+
$STD apt -y autoremove
56+
$STD apt -y autoclean
57+
$STD apt -y clean
58+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)