mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-11-07 18:31:58 +01:00
Update proxmox-zfs-postinstall.sh
Suggested from teissler: -change (y/n)? to (y/N)? ;This way it is easier to understand that everything except "y" doesn't enables the pve-no-subscription repo. -$response to lowercase ;would also improve the scripts failure proofness.
This commit is contained in:
parent
8abeca080d
commit
b46d8c0a39
@ -167,9 +167,9 @@ fi
|
||||
# disable pve-enterprise repo and add pve-no-subscription repo
|
||||
|
||||
#Not tested, yet!
|
||||
read -p "Do you want to disable pve-enterprise repo and add pve-no-subscription repo (y/n)? " response
|
||||
read -p "Do you want to disable pve-enterprise repo and add pve-no-subscription repo (y/N)? " response
|
||||
|
||||
if [ "$response" == "y" ]; then
|
||||
if [ "${response,,}" == "y" ]; then
|
||||
if [[ "$(uname -r)" == *"-pve" ]]; then
|
||||
echo "Deactivating pve-enterprise repository"
|
||||
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak > /dev/null 2>&1
|
||||
|
Loading…
Reference in New Issue
Block a user