From f373f9a0a26da202a9ee4eb166420539e1fa5eac Mon Sep 17 00:00:00 2001 From: akanealw Date: Sun, 30 Jun 2024 17:41:58 -0500 Subject: [PATCH] moved pve check above pbs check --- proxmox/download-proxmox-essentials.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/proxmox/download-proxmox-essentials.sh b/proxmox/download-proxmox-essentials.sh index 34b12f6..74266fc 100755 --- a/proxmox/download-proxmox-essentials.sh +++ b/proxmox/download-proxmox-essentials.sh @@ -7,15 +7,6 @@ mkdir /root/scripts > /dev/null 2>&1 rm /root/proxmox-* > /dev/null 2>&1 rm /root/scripts/proxmox-* > /dev/null 2>&1 -# check for pbs directory -if [[ -d /etc/proxmox-backup ]] ; then - wget -qO /root/scripts/proxmox-pbs-essentials.sh https://aknlw.com/proxmox-pbs-essentials - wget -qO /root/scripts/proxmox-post-pbs-install.sh https://aknlw.com/proxmox-post-pbs-install - wget -qO /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean - chmod +x /root/scripts/proxmox-*.sh - /root/scripts/proxmox-pbs-essentials.sh -fi - # check for pve directory if [[ -d /etc/pve ]] ; then wget -qO /root/scripts/proxmox-pve-essentials.sh https://aknlw.com/proxmox-pve-essentials @@ -24,3 +15,12 @@ if [[ -d /etc/pve ]] ; then chmod +x /root/scripts/proxmox-*.sh /root/scripts/proxmox-pve-essentials.sh fi + +# check for pbs directory +if [[ -d /etc/proxmox-backup ]] ; then + wget -qO /root/scripts/proxmox-pbs-essentials.sh https://aknlw.com/proxmox-pbs-essentials + wget -qO /root/scripts/proxmox-post-pbs-install.sh https://aknlw.com/proxmox-post-pbs-install + wget -qO /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean + chmod +x /root/scripts/proxmox-*.sh + /root/scripts/proxmox-pbs-essentials.sh +fi