diff --git a/postinstall b/postinstall index 31ce909..8f9a7ec 100755 --- a/postinstall +++ b/postinstall @@ -276,16 +276,16 @@ set_pve_repo(){ test=$(grep pvetest /etc/apt/sources.list) if [[ $repo_selection == "pve-enterprise" ]]; then pvesh set nodes/px1/apt/repositories --handle enterprise - sed -i "s/$nosub/# $nosub/g" /etc/apt/sources.list - sed -i "s/$test/# $test/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 elif [[ $repo_selection == "pve-no-subscription" ]]; then 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/$test/# $test/g" /etc/apt/sources.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 elif [[ $repo_selection == "pvetest" ]]; then pvesh set nodes/px1/apt/repositories --handle test - 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|$nosub|# $nosub|g" /etc/apt/sources.list + sed -i "s|$enterprise|# $enterprise|g" /etc/apt/sources.list.d/pve-enterprise.list fi }