download scripts to scripts directory

This commit is contained in:
2023-08-02 13:44:00 -05:00
parent 9b2da63848
commit ddbe7e3bf2

View File

@@ -1,20 +1,21 @@
#!/bin/bash
# remove older scripts
rm /root/proxmox-*
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 -O /root/proxmox-pbs-essentials.sh https://aknlw.com/proxmox-pbs-essentials
wget -O /root/proxmox-post-pbs-install.sh https://aknlw.com/proxmox-post-pbs-install
wget -O /root/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean
chmod +x proxmox-*.sh
wget -O /root/scripts/proxmox-pbs-essentials.sh https://aknlw.com/proxmox-pbs-essentials
wget -O /root/scripts/proxmox-post-pbs-install.sh https://aknlw.com/proxmox-post-pbs-install
wget -O /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean
chmod +x /root/scripts/proxmox-*.sh
fi
# check for pve directory
if [[ -d /etc/pve ]] ; then
wget -O /root/proxmox-pve-essentials.sh https://aknlw.com/proxmox-pve-essentials
wget -O /root/proxmox-post-pve-install.sh https://aknlw.com/proxmox-post-pve-install
wget -O /root/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean
chmod +x /root/proxmox-*.sh
wget -O /root/scrips/proxmox-pve-essentials.sh https://aknlw.com/proxmox-pve-essentials
wget -O /root/scripts/proxmox-post-pve-install.sh https://aknlw.com/proxmox-post-pve-install
wget -O /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean
chmod +x /root/scripts/proxmox-*.sh
fi