Files
linux-scripts/proxmox/download-proxmox-essentials.sh
2024-06-30 17:51:07 -05:00

27 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# make scripts directory
mkdir /root/scripts > /dev/null 2>&1
# remove older scripts
rm /root/proxmox-* > /dev/null 2>&1
rm /root/scripts/proxmox-* > /dev/null 2>&1
# check for pve directory
if [[ -d /etc/pve ]] ; then
wget -qO /root/scripts/proxmox-pve-essentials.sh https://scripts.akanealw.com/proxmox/proxmox-pve-essentials
wget -qO /root/scripts/proxmox-post-pve-install.sh https://scripts.akanealw.com/proxmox/proxmox-post-pve-install
wget -qO /root/scripts/proxmox-kernel-clean.sh https://scripts.akanealw.com/proxmox/proxmox-kernel-clean
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://scripts.akanealw.com/proxmox/proxmox-pbs-essentials
wget -qO /root/scripts/proxmox-post-pbs-install.sh https://scripts.akanealw.com/proxmox/proxmox-post-pbs-install
wget -qO /root/scripts/proxmox-kernel-clean.sh https://scripts.akanealw.com/proxmox/proxmox-kernel-clean
chmod +x /root/scripts/proxmox-*.sh
/root/scripts/proxmox-pbs-essentials.sh
fi