diff --git a/scripts/upgrade b/scripts/upgrade index 5cd96f3..00ddfbb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -27,9 +27,9 @@ fi # multi-instance cases break the remaining instances. # So we need to add the delimiters if they are missing # The config will be re-added afterwards -if ! grep -q "begin ${app}" $ssh_dir/config; then +if ! grep -q "begin ${app}" /root/.ssh/config; then # did not find delimiters so removing old configuration - sed -e "/Host ${server}/,+6d" "$ssh_dir/config" -i || true + sed -e "/Host ${server}/,+6d" "/root/.ssh/config" -i || true fi #=================================================