mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-25 01:30:12 +01:00
Added lsb-release, check if pve
This commit is contained in:
parent
701273ea91
commit
9c048b1dc0
10
install.sh
10
install.sh
@ -3,7 +3,7 @@
|
||||
###### CONFIG SECTION ######
|
||||
|
||||
# Define basic tools to install
|
||||
TOOLS="sudo vim ifupdown2 net-tools dnsutils ethtool git curl unzip screen iftop lshw smartmontools nvme-cli lsscsi sysstat zfs-auto-snapshot htop mc rpl"
|
||||
TOOLS="sudo vim ifupdown2 net-tools dnsutils ethtool git curl unzip screen iftop lshw smartmontools nvme-cli lsscsi sysstat zfs-auto-snapshot htop mc rpl lsb-release"
|
||||
|
||||
###### SYSTEM INFO AND INTERACTIVE CONFIGURATION SECTION ######
|
||||
|
||||
@ -92,7 +92,7 @@ if [ $? -eq 0 ]; then
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "'zfs-auto-snapshot' not installed yet, using scrpit defaults..."
|
||||
echo "'zfs-auto-snapshot' not installed yet, using script defaults..."
|
||||
fi
|
||||
echo -e "######## CONFIGURE ZFS AUTO SNAPSHOT ########\n"
|
||||
for interval in "${!auto_snap_keep[@]}"; do
|
||||
@ -119,8 +119,10 @@ PVE_CONF_BACKUP_CRON_TIMER="*/15 * * * *"
|
||||
###### INSTALLER SECTION ######
|
||||
|
||||
# disable pve-enterprise repo and add pve-no-subscription repo
|
||||
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
|
||||
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
|
||||
if [[ "$(uname -r)" == *"-pve" ]]; then
|
||||
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
|
||||
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
|
||||
fi
|
||||
apt update
|
||||
|
||||
# update system and install basic tools
|
||||
|
Loading…
Reference in New Issue
Block a user