From 75cbd7d9dfcff1959e6d9b57fb09d4d7c04a3cbc Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Mon, 2 Oct 2023 21:30:11 +0200 Subject: [PATCH] Fix repo edit --- postinstall | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 }