From 235364518ad7a8ccb12ec8a8381102334d3aa26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Thu, 10 Apr 2025 15:57:01 -0300 Subject: [PATCH 01/12] Create jumpserver.json --- frontend/public/json/jumpserver.json | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 frontend/public/json/jumpserver.json diff --git a/frontend/public/json/jumpserver.json b/frontend/public/json/jumpserver.json new file mode 100644 index 0000000..cf1cdba --- /dev/null +++ b/frontend/public/json/jumpserver.json @@ -0,0 +1,34 @@ +{ + "name": "JumpServer", + "slug": "jumpserver", + "categories": [ + 6 + ], + "date_created": "2025-04-08", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 80, + "documentation": "https://www.jumpserver.com/docs", + "website": "https://www.jumpserver.com/", + "logo": "https://avatars.githubusercontent.com/u/68588906", + "description": "JumpServer is an open-source Privileged Access Management (PAM) tool that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.", + "install_methods": [ + { + "type": "default", + "script": "ct/jumpserver.sh", + "resources": { + "cpu": 2, + "ram": 8192, + "hdd": 60, + "os": "debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": "admin", + "password": "ChangeMe" + }, + "notes": [] +} From 3634a863b98d6289fa91d40cddf24e49a354987f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Thu, 10 Apr 2025 15:57:25 -0300 Subject: [PATCH 02/12] Create jumpserver-install.sh --- install/jumpserver-install.sh | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 install/jumpserver-install.sh diff --git a/install/jumpserver-install.sh b/install/jumpserver-install.sh new file mode 100644 index 0000000..41e7d66 --- /dev/null +++ b/install/jumpserver-install.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Nícolas Pastorello (opastorello) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://jumpserver.com/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y \ + curl \ + tar \ + iptables +msg_ok "Installed Dependencies" + +msg_info "Installing JumpServer" +cd /opt +RELEASE=$(curl -fsSL https://api.github.com/repos/jumpserver/installer/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/') +curl -fsSL "https://github.com/jumpserver/installer/releases/download/${RELEASE}/jumpserver-installer-${RELEASE}.tar.gz" -o jumpserver-installer-${RELEASE}.tar.gz +$STD mkdir -p /opt/jumpserver +$STD tar -xzvf jumpserver-installer-${RELEASE}.tar.gz -C /opt/jumpserver --strip-components=1 +cd /opt/jumpserver +$STD ./jmsctl.sh install </opt/${APP}_version.txt +msg_ok "Installed JumpServer" + +motd_ssh +customize + +msg_info "Cleaning up" +rm -rf /opt/jumpserver-installer-${RELEASE}.tar.gz +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" From 6b02f6cf96de270a617fffd1aaf790550b2678fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Thu, 10 Apr 2025 15:57:43 -0300 Subject: [PATCH 03/12] Create jumpserver.sh --- ct/jumpserver.sh | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 ct/jumpserver.sh diff --git a/ct/jumpserver.sh b/ct/jumpserver.sh new file mode 100644 index 0000000..4501ed9 --- /dev/null +++ b/ct/jumpserver.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Nícolas Pastorello (opastorello) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://jumpserver.com/ + +APP="JumpServer" +var_tags="bastion-host;pam" +var_cpu="2" +var_ram="8192" +var_disk="60" +var_os="debian" +var_version="12" +var_unprivileged="1" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/jumpserver ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + RELEASE=$(curl -fsSL https://api.github.com/repos/jumpserver/installer/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/') + if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then + msg_info "Updating ${APP} to ${RELEASE}" + if [[ -d /opt/jumpserver/config ]]; then + msg_info "Backing up /opt/jumpserver/config" + cp -r /opt/jumpserver/config /opt/jumpserver_config_backup + fi + echo "${RELEASE}" >/opt/${APP}_version.txt + rm -rf /opt/jumpserver + cd /opt + curl -fsSL "https://github.com/jumpserver/installer/releases/download/${RELEASE}/jumpserver-installer-${RELEASE}.tar.gz" -o jumpserver-installer-${RELEASE}.tar.gz + $STD mkdir -p /opt/jumpserver + $STD tar -xzvf jumpserver-installer-${RELEASE}.tar.gz -C /opt/jumpserver --strip-components=1 + if [[ -d /opt/jumpserver_config_backup ]]; then + msg_info "Restoring config backup" + cp -r /opt/jumpserver_config_backup /opt/jumpserver/config + rm -rf /opt/jumpserver_config_backup + fi + cd /opt/jumpserver + yes y | head -n 3 | $STD ./jmsctl.sh upgrade + $STD ./jmsctl.sh start + rm -rf /opt/jumpserver-installer-${RELEASE}.tar.gz + msg_ok "Updated Successfully" + else + msg_ok "No update required. ${APP} is already at ${RELEASE}." + fi + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:80${CL}" From 110eb3995e18d5c4dd1cd78a07469f14ad59cc12 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 12 Apr 2025 19:32:07 +0200 Subject: [PATCH 04/12] Update ct/jumpserver.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- ct/jumpserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/jumpserver.sh b/ct/jumpserver.sh index 4501ed9..7031e11 100644 --- a/ct/jumpserver.sh +++ b/ct/jumpserver.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: Nícolas Pastorello (opastorello) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE From 53fc40fe105ef222dbbf52fdc4c92cdf87af6a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Sat, 12 Apr 2025 15:03:51 -0300 Subject: [PATCH 05/12] Update ct/jumpserver.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- ct/jumpserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/jumpserver.sh b/ct/jumpserver.sh index 7031e11..184a327 100644 --- a/ct/jumpserver.sh +++ b/ct/jumpserver.sh @@ -3,7 +3,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV # Copyright (c) 2021-2025 community-scripts ORG # Author: Nícolas Pastorello (opastorello) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://jumpserver.com/ +# Source: https://github.com/jumpserver/jumpserver APP="JumpServer" var_tags="bastion-host;pam" From eb76b2aba73637de85abcc1e487bd41176b40382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Sat, 12 Apr 2025 15:03:59 -0300 Subject: [PATCH 06/12] Update ct/jumpserver.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- ct/jumpserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/jumpserver.sh b/ct/jumpserver.sh index 184a327..f439cb5 100644 --- a/ct/jumpserver.sh +++ b/ct/jumpserver.sh @@ -39,7 +39,7 @@ function update_script() { rm -rf /opt/jumpserver cd /opt curl -fsSL "https://github.com/jumpserver/installer/releases/download/${RELEASE}/jumpserver-installer-${RELEASE}.tar.gz" -o jumpserver-installer-${RELEASE}.tar.gz - $STD mkdir -p /opt/jumpserver + mkdir -p /opt/jumpserver $STD tar -xzvf jumpserver-installer-${RELEASE}.tar.gz -C /opt/jumpserver --strip-components=1 if [[ -d /opt/jumpserver_config_backup ]]; then msg_info "Restoring config backup" From e0512ed2f71bf58108f2e7ae1af201fcb3af85b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Sat, 12 Apr 2025 15:04:12 -0300 Subject: [PATCH 07/12] Update frontend/public/json/jumpserver.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- frontend/public/json/jumpserver.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/json/jumpserver.json b/frontend/public/json/jumpserver.json index cf1cdba..2d0cf57 100644 --- a/frontend/public/json/jumpserver.json +++ b/frontend/public/json/jumpserver.json @@ -11,7 +11,7 @@ "interface_port": 80, "documentation": "https://www.jumpserver.com/docs", "website": "https://www.jumpserver.com/", - "logo": "https://avatars.githubusercontent.com/u/68588906", + "logo": "https://raw.githubusercontent.com/jumpserver/jumpserver/refs/heads/dev/apps/static/img/logo.png", "description": "JumpServer is an open-source Privileged Access Management (PAM) tool that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.", "install_methods": [ { From 02ae2e010967b3f56f331adf51d99a8d0c36f508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Sat, 12 Apr 2025 15:04:19 -0300 Subject: [PATCH 08/12] Update install/jumpserver-install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- install/jumpserver-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/jumpserver-install.sh b/install/jumpserver-install.sh index 41e7d66..e9c11ca 100644 --- a/install/jumpserver-install.sh +++ b/install/jumpserver-install.sh @@ -3,7 +3,7 @@ # Copyright (c) 2021-2025 community-scripts ORG # Author: Nícolas Pastorello (opastorello) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://jumpserver.com/ +# Source: https://github.com/jumpserver/jumpserver source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color From 86f1e8be33a759a48966538377e60226f852fc2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Sat, 12 Apr 2025 15:04:23 -0300 Subject: [PATCH 09/12] Update install/jumpserver-install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- install/jumpserver-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/jumpserver-install.sh b/install/jumpserver-install.sh index e9c11ca..4cc2539 100644 --- a/install/jumpserver-install.sh +++ b/install/jumpserver-install.sh @@ -24,7 +24,7 @@ msg_info "Installing JumpServer" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/jumpserver/installer/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/') curl -fsSL "https://github.com/jumpserver/installer/releases/download/${RELEASE}/jumpserver-installer-${RELEASE}.tar.gz" -o jumpserver-installer-${RELEASE}.tar.gz -$STD mkdir -p /opt/jumpserver +mkdir -p /opt/jumpserver $STD tar -xzvf jumpserver-installer-${RELEASE}.tar.gz -C /opt/jumpserver --strip-components=1 cd /opt/jumpserver $STD ./jmsctl.sh install < Date: Sun, 20 Apr 2025 18:42:27 -0300 Subject: [PATCH 10/12] Update ct/jumpserver.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- ct/jumpserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/jumpserver.sh b/ct/jumpserver.sh index f439cb5..3874bfb 100644 --- a/ct/jumpserver.sh +++ b/ct/jumpserver.sh @@ -64,4 +64,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:80${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}" From 86e004a3a7cbd5b237db8a05f861fcec4db5da78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Sun, 20 Apr 2025 22:53:27 -0300 Subject: [PATCH 11/12] Update jumpserver.sh --- ct/jumpserver.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/ct/jumpserver.sh b/ct/jumpserver.sh index 3874bfb..3ff61a2 100644 --- a/ct/jumpserver.sh +++ b/ct/jumpserver.sh @@ -32,7 +32,6 @@ function update_script() { if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating ${APP} to ${RELEASE}" if [[ -d /opt/jumpserver/config ]]; then - msg_info "Backing up /opt/jumpserver/config" cp -r /opt/jumpserver/config /opt/jumpserver_config_backup fi echo "${RELEASE}" >/opt/${APP}_version.txt @@ -42,7 +41,6 @@ function update_script() { mkdir -p /opt/jumpserver $STD tar -xzvf jumpserver-installer-${RELEASE}.tar.gz -C /opt/jumpserver --strip-components=1 if [[ -d /opt/jumpserver_config_backup ]]; then - msg_info "Restoring config backup" cp -r /opt/jumpserver_config_backup /opt/jumpserver/config rm -rf /opt/jumpserver_config_backup fi From ac8cd0135356f29114f64c319684bfc6da3bcd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Tue, 22 Apr 2025 10:33:26 -0300 Subject: [PATCH 12/12] Update jumpserver-install.sh --- install/jumpserver-install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/install/jumpserver-install.sh b/install/jumpserver-install.sh index 4cc2539..adf969d 100644 --- a/install/jumpserver-install.sh +++ b/install/jumpserver-install.sh @@ -15,7 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ tar \ iptables msg_ok "Installed Dependencies"