Skip to content

Commit

Permalink
Improved output of remove.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
fgiorgetti committed Sep 19, 2024
1 parent 753ad26 commit 97d5573
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/bootstrap/remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ remove_definition() {
if [ -f "${platform_file}" ]; then
SKUPPER_PLATFORM=$(grep '^platform: ' "${platform_file}" | sed -e 's/.*: //g')
if [ "${SKUPPER_PLATFORM}" = "podman" ] || [ "${SKUPPER_PLATFORM}" = "docker" ]; then
${SKUPPER_PLATFORM} rm -f "${namespace}-skupper-router"
${SKUPPER_PLATFORM} rm -f "${namespace}-skupper-router" > /dev/null
fi
fi
rm -rf "${namespaces_path:?}/${namespace:?}/"
Expand All @@ -39,7 +39,7 @@ remove_definition() {
remove_service() {
service="skupper-${namespace}.service"
${systemctl} stop "${service}"
${systemctl} disable "${service}"
${systemctl} disable "${service}" > /dev/null 2>&1
rm -f "${service_path:?}/${service:?}"
${systemctl} daemon-reload
${systemctl} reset-failed
Expand All @@ -57,6 +57,7 @@ main () {
fi
remove_definition
remove_service
echo "Namespace \"${namespace}\" has been removed"
}

main "$@"

0 comments on commit 97d5573

Please sign in to comment.