mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-25 17:50:13 +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 ######
|
###### CONFIG SECTION ######
|
||||||
|
|
||||||
# Define basic tools to install
|
# 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 ######
|
###### SYSTEM INFO AND INTERACTIVE CONFIGURATION SECTION ######
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ if [ $? -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "'zfs-auto-snapshot' not installed yet, using scrpit defaults..."
|
echo "'zfs-auto-snapshot' not installed yet, using script defaults..."
|
||||||
fi
|
fi
|
||||||
echo -e "######## CONFIGURE ZFS AUTO SNAPSHOT ########\n"
|
echo -e "######## CONFIGURE ZFS AUTO SNAPSHOT ########\n"
|
||||||
for interval in "${!auto_snap_keep[@]}"; do
|
for interval in "${!auto_snap_keep[@]}"; do
|
||||||
@ -119,8 +119,10 @@ PVE_CONF_BACKUP_CRON_TIMER="*/15 * * * *"
|
|||||||
###### INSTALLER SECTION ######
|
###### INSTALLER SECTION ######
|
||||||
|
|
||||||
# disable pve-enterprise repo and add pve-no-subscription repo
|
# 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
|
if [[ "$(uname -r)" == *"-pve" ]]; then
|
||||||
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
|
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
|
apt update
|
||||||
|
|
||||||
# update system and install basic tools
|
# update system and install basic tools
|
||||||
|
Loading…
Reference in New Issue
Block a user