From fe47af873cd2884cd391ad4059eb832408a6cd34 Mon Sep 17 00:00:00 2001 From: Oliver Gwyther Date: Wed, 18 Sep 2024 18:43:27 +0100 Subject: [PATCH] Added proxmox install script --- proxmox-scripts/install.sh | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 proxmox-scripts/install.sh diff --git a/proxmox-scripts/install.sh b/proxmox-scripts/install.sh new file mode 100644 index 0000000..daa973d --- /dev/null +++ b/proxmox-scripts/install.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +# Function to display the main menu +function show_menu() { + clear + echo "======================================" + echo " Proxmox Helper Script Installer" + echo "======================================" + echo "1. Install PVE-No-Subscription-Warning" + echo "2. Install PVE Kernel Module Patcher" + echo "3. Install PVE VM Backup Script" + echo "4. Exit" + echo "======================================" +} + +# Function to install the PVE No Subscription Warning script +function install_pve_no_subscription_warning() { + clear + echo "Installing PVE-No-Subscription-Warning..." + # Add your installation command here, for example: + wget https://raw.githubusercontent.com/proxmox/pve-no-subscription-warning/master/pve-no-subscription-warning -O /usr/local/bin/pve-no-subscription-warning + chmod +x /usr/local/bin/pve-no-subscription-warning + echo "PVE-No-Subscription-Warning installed successfully!" + read -n 1 -s -r -p "Press any key to continue..." +} + +# Function to install the PVE Kernel Module Patcher script +function install_pve_kernel_module_patcher() { + clear + echo "Installing PVE Kernel Module Patcher..." + # Add your installation command here, for example: + wget https://raw.githubusercontent.com/olafm/proxmox-no-subscription-patch/master/pve-no-subscription-patch -O /usr/local/bin/pve-kernel-module-patcher + chmod +x /usr/local/bin/pve-kernel-module-patcher + echo "PVE Kernel Module Patcher installed successfully!" + read -n 1 -s -r -p "Press any key to continue..." +} + +# Function to install the PVE VM Backup Script +function install_pve_vm_backup_script() { + clear + echo "Installing PVE VM Backup Script..." + # Add your installation command here, for example: + wget https://raw.githubusercontent.com/erikng/proxmox-scripts/master/backup-vm.sh -O /usr/local/bin/pve-vm-backup + chmod +x /usr/local/bin/pve-vm-backup + echo "PVE VM Backup Script installed successfully!" + read -n 1 -s -r -p "Press any key to continue..." +} + +# Main loop +while true; do + show_menu + read -p "Please enter your choice: " choice + case $choice in + 1) install_pve_no_subscription_warning ;; + 2) install_pve_kernel_module_patcher ;; + 3) install_pve_vm_backup_script ;; + 4) exit 0 ;; + *) echo "Invalid option. Please enter a number between 1 and 4." ;; + esac +done \ No newline at end of file