From 0e5f663df518e1dadee5132b308024400efbe830 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Tue, 4 Feb 2025 13:22:57 +0100 Subject: [PATCH] Proxmox Backup Server Renaming and Update fix (#2012) * Remaned PBS to long name Proxmox Backup Server and fixed install check * Fix Name --- ct/{pbs.sh => proxmox-backup-server.sh} | 4 ++-- ...pbs-install.sh => proxmox-backup-server-install.sh} | 8 +++++--- json/{pbs.json => proxmox-backup-server.json} | 10 +++++----- 3 files changed, 12 insertions(+), 10 deletions(-) rename ct/{pbs.sh => proxmox-backup-server.sh} (92%) rename install/{pbs-install.sh => proxmox-backup-server-install.sh} (90%) rename json/{pbs.json => proxmox-backup-server.json} (86%) diff --git a/ct/pbs.sh b/ct/proxmox-backup-server.sh similarity index 92% rename from ct/pbs.sh rename to ct/proxmox-backup-server.sh index 4c9305055..c8ad135a5 100644 --- a/ct/pbs.sh +++ b/ct/proxmox-backup-server.sh @@ -16,7 +16,7 @@ cat <<"EOF" EOF } header_info -APP="PBS" +APP="Proxmox-Backup-Server" var_tags="backup" var_cpu="2" var_ram="2048" @@ -37,7 +37,7 @@ function update_script() { header_info check_container_storage check_container_resources - if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi + if [[ ! -e /usr/sbin/proxmox-backup-manager ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/install/pbs-install.sh b/install/proxmox-backup-server-install.sh similarity index 90% rename from install/pbs-install.sh rename to install/proxmox-backup-server-install.sh index c14a2c123..2545c899f 100644 --- a/install/pbs-install.sh +++ b/install/proxmox-backup-server-install.sh @@ -14,9 +14,11 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y mc +$STD apt-get install -y \ + curl \ + sudo \ + gpg \ + mc msg_ok "Installed Dependencies" msg_info "Installing Proxmox Backup Server" diff --git a/json/pbs.json b/json/proxmox-backup-server.json similarity index 86% rename from json/pbs.json rename to json/proxmox-backup-server.json index 360a038a6..497c2f929 100644 --- a/json/pbs.json +++ b/json/proxmox-backup-server.json @@ -1,12 +1,12 @@ { "name": "Proxmox Backup Server", - "slug": "pbs", + "slug": "proxmox-backup-server", "categories": [ 1 ], "date_created": "2024-05-02", "type": "ct", - "updateable": false, + "updateable": true, "privileged": false, "interface_port": 8007, "documentation": "https://pbs.proxmox.com/docs/", @@ -16,7 +16,7 @@ "install_methods": [ { "type": "default", - "script": "ct/pbs.sh", + "script": "ct/proxmox-backup-server.sh", "resources": { "cpu": 2, "ram": 2048, @@ -27,12 +27,12 @@ } ], "default_credentials": { - "username": null, + "username": "root", "password": null }, "notes": [ { - "text": "Set a root password if using autologin. This will be the PBS password. `sudo passwd root`", + "text": "Set a root password if using autologin. This will be the PBS password. `passwd root`", "type": "warning" } ]