Files
ProxmoxVE/install/zoraxy-install.sh
T
Sam Heinz 3fc187efb8 [arm64] Port scripts between warracker-zwavejsui to support arm64 (#15291)
* [arm64] Port scripts between warracker-zwavejsui to support arm64

* Update zerotier-one-install.sh
2026-06-22 21:13:32 +02:00

39 lines
935 B
Bash

#!/usr/bin/env bash
# Copyright (c) 2021-2026 tteck
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://zoraxy.aroz.org/ | Github: https://github.com/tobychui/zoraxy
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "zoraxy" "tobychui/zoraxy" "singlefile" "latest" "/opt/zoraxy" "zoraxy_linux_$(arch_resolve)"
ln -s /opt/zoraxy/zoraxy /usr/local/bin/zoraxy
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/zoraxy.service
[Unit]
Description=General purpose request proxy and forwarding tool
After=syslog.target network-online.target
[Service]
ExecStart=/opt/zoraxy/./zoraxy
WorkingDirectory=/opt/zoraxy/
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now zoraxy
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc