commit 5bce1dbb749da7ead61df7ba36dc6f738b63236b Author: mkono87 Date: Sun Oct 24 00:29:23 2021 -0400 initial commit diff --git a/Proxmox_Setup/proxmox_setup.sh b/Proxmox_Setup/proxmox_setup.sh new file mode 100644 index 0000000..47262f2 --- /dev/null +++ b/Proxmox_Setup/proxmox_setup.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +function nettest { + echo -e "GET http://google.com HTTP/1.0\n\n" | nc google.com 80 > /dev/null 2>&1 + if [ $? -eq 0 ]; then + echo "Internet connection confirmed" + else + echo "No internet connection available. Script will now exit." + sleep 2 + exit + fi +} + +function darkmode { + wget https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh + bash PVEDiscordDark.sh install + echo "You will need to refresh the gui for the theme to take affect." + sleep 2 +} + +#Remove local-pve partition, resize and partition the disk all in to local. +function partition { + lvremove /dev/pve/data -y + lvresize -l +100%FREE /dev/pve/root + resize2fs /dev/mapper/pve-root +} + + +##MAIN## + +#Test for internet connectivity + + +nettest + +cat <