From 08766b93944bcac8bff45c5dec6a8d9cb00a04fe Mon Sep 17 00:00:00 2001 From: Galoz <40101938+galoz11@users.noreply.github.com> Date: Wed, 11 Jun 2025 17:14:19 +0300 Subject: [PATCH] Merge branch 'main' of https://github.com/galoz11/proxy --- .vscode/settings.json | 3 +++ README.md | 4 +++- code_server.sh | 3 ++- docker_portainer.sh | 9 ++++++++- 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cdbd9ed --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.fontSize": 14 +} \ No newline at end of file diff --git a/README.md b/README.md index a72f502..62ed581 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ -## proxy +## Proxmox helper scripts. to use the scripts, type: bash -c "$(curl -fsSL https://raw.githubusercontent.com/galoz11/proxy/refs/heads/main/.sh)" example: bash -c "$(curl -fsSL https://raw.githubusercontent.com/galoz11/proxy/refs/heads/main/code_server.sh)" + +bash -c "$(curl -fsSL https://raw.githubusercontent.com/galoz11/proxy/refs/heads/main/docker_portainer.sh)" diff --git a/code_server.sh b/code_server.sh index 725f99b..665a90a 100644 --- a/code_server.sh +++ b/code_server.sh @@ -1,4 +1,5 @@ #!/bin/bash + function header_info { echo echo -e " ${DGN}${APP}${CL}" @@ -39,7 +40,7 @@ while true; do *) echo "Please answer yes or no." ;; esac done -# ----------------------installing--------------------------------- +# ----------------------installing--------------------------------- echo "Installing Dependencies" apt update &>/dev/null apt install -y curl &>/dev/null diff --git a/docker_portainer.sh b/docker_portainer.sh index 3203867..0bd503e 100644 --- a/docker_portainer.sh +++ b/docker_portainer.sh @@ -60,7 +60,14 @@ if [ "$(docker ps -a -q -f name=^/${CONTAINER}$)" ]; then else echo -e "${CN} '$CONTAINER' does not exist, creating it now" docker volume create portainer_data &>/dev/null - docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest &>/dev/null + docker run -d \ + -p 8000:8000 \ + -p 9443:9443 \ + --name portainer \ + --restart=always \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v portainer_data:/data \ + portainer/portainer-ce:latest &>/dev/null echo -e "${BFR}${BFR}${CM} $CONTAINER installed" echo -e "Portainer should be reachable by going to the following URL. ${BL}https://$IP:9443${CL} \n"