27 lines
1.1 KiB
Bash
Executable File
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 http://192.168.1.50:81/proxmox/proxmox-pve-essentials.sh
|
|
wget -qO /root/scripts/proxmox-post-pve-install.sh http://192.168.1.50:81/proxmox/proxmox-post-pve-install.sh
|
|
wget -qO /root/scripts/proxmox-kernel-clean.sh http://192.168.1.50:81/proxmox/proxmox-kernel-clean.sh
|
|
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 http://192.168.1.50:81/proxmox/proxmox-pbs-essentials.sh
|
|
wget -qO /root/scripts/proxmox-post-pbs-install.sh http://192.168.1.50:81/proxmox/proxmox-post-pbs-install.sh
|
|
wget -qO /root/scripts/proxmox-kernel-clean.sh http://192.168.1.50:81/proxmox/proxmox-kernel-clean.sh
|
|
chmod +x /root/scripts/proxmox-*.sh
|
|
/root/scripts/proxmox-pbs-essentials.sh
|
|
fi
|