Updates
This commit is contained in:
@ -17,6 +17,8 @@ function show_menu() {
|
||||
function install_pve_no_subscription_warning() {
|
||||
clear
|
||||
echo "Installing PVE-No-Subscription-Warning..."
|
||||
# Backup important configuration files
|
||||
backup_file "/etc/apt/sources.list"
|
||||
# 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
|
||||
@ -28,6 +30,8 @@ function install_pve_no_subscription_warning() {
|
||||
function install_pve_kernel_module_patcher() {
|
||||
clear
|
||||
echo "Installing PVE Kernel Module Patcher..."
|
||||
# Backup important configuration files
|
||||
backup_file "/etc/modprobe.d/proxmox-no-subscription.conf"
|
||||
# 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
|
||||
@ -46,6 +50,19 @@ function install_pve_vm_backup_script() {
|
||||
read -n 1 -s -r -p "Press any key to continue..."
|
||||
}
|
||||
|
||||
# Function to backup files
|
||||
function backup_file() {
|
||||
local file=$1
|
||||
if [ -f $file ]; then
|
||||
local timestamp=$(date +%Y%m%d_%H%M%S)
|
||||
local backup_file="/root/backup_$timestamp_$(basename $file)"
|
||||
echo "Backing up $file to $backup_file"
|
||||
rsync -a --delete $file $backup_file
|
||||
else
|
||||
echo "$file does not exist. Skipping backup."
|
||||
fi
|
||||
}
|
||||
|
||||
# Main loop
|
||||
while true; do
|
||||
show_menu
|
||||
|
Reference in New Issue
Block a user