From e958b4fcf389f7e73b2039be2ddf21ea93720892 Mon Sep 17 00:00:00 2001 From: hector-baez Date: Fri, 15 Dec 2023 10:47:06 -0600 Subject: [PATCH] add sudo to datasource --- main/dismantle_instance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/dismantle_instance.sh b/main/dismantle_instance.sh index a4eaa2f..6c7942c 100755 --- a/main/dismantle_instance.sh +++ b/main/dismantle_instance.sh @@ -67,6 +67,6 @@ endnumber=$(( $linenumber + 7 )) sed -i "${linenumber},${endnumber}d" $SSHCONFIG # remove $NAME from $DATASOURCE -linenumber=$(grep -n "name: $NAME" $DATASOURCE | cut -d":" -f1) +linenumber=$(sudo grep -n "name: $NAME" $DATASOURCE | cut -d":" -f1) endnumber=$(( $linenumber + 6 )) sudo sed -i "${linenumber},${endnumber}d" $DATASOURCE