mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-11-07 18:31:58 +01:00
Fix repo edit
This commit is contained in:
parent
23c20522b1
commit
75cbd7d9df
12
postinstall
12
postinstall
@ -276,16 +276,16 @@ set_pve_repo(){
|
|||||||
test=$(grep pvetest /etc/apt/sources.list)
|
test=$(grep pvetest /etc/apt/sources.list)
|
||||||
if [[ $repo_selection == "pve-enterprise" ]]; then
|
if [[ $repo_selection == "pve-enterprise" ]]; then
|
||||||
pvesh set nodes/px1/apt/repositories --handle enterprise
|
pvesh set nodes/px1/apt/repositories --handle enterprise
|
||||||
sed -i "s/$nosub/# $nosub/g" /etc/apt/sources.list
|
sed -i "s|$nosub|# $nosub|g" /etc/apt/sources.list
|
||||||
sed -i "s/$test/# $test/g" /etc/apt/sources.list
|
sed -i "s|$test|# $test|g" /etc/apt/sources.list
|
||||||
elif [[ $repo_selection == "pve-no-subscription" ]]; then
|
elif [[ $repo_selection == "pve-no-subscription" ]]; then
|
||||||
pvesh set nodes/px1/apt/repositories --handle no-subscription
|
pvesh set nodes/px1/apt/repositories --handle no-subscription
|
||||||
sed -i "s/$enterprise/# $enterprise/g" /etc/apt/sources.list.d/pve-enterprise.list
|
sed -i "s|$enterprise|# $enterprise|g" /etc/apt/sources.list.d/pve-enterprise.list
|
||||||
sed -i "s/$test/# $test/g" /etc/apt/sources.list
|
sed -i "s|$test|# $test|g" /etc/apt/sources.list
|
||||||
elif [[ $repo_selection == "pvetest" ]]; then
|
elif [[ $repo_selection == "pvetest" ]]; then
|
||||||
pvesh set nodes/px1/apt/repositories --handle test
|
pvesh set nodes/px1/apt/repositories --handle test
|
||||||
sed -i "s/$nosub/# $nosub/g" /etc/apt/sources.list
|
sed -i "s|$nosub|# $nosub|g" /etc/apt/sources.list
|
||||||
sed -i "s/$enterprise/# $enterprise/g" /etc/apt/sources.list.d/pve-enterprise.list
|
sed -i "s|$enterprise|# $enterprise|g" /etc/apt/sources.list.d/pve-enterprise.list
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user