More rm fixes

pull/1/head
riley 1 year ago
parent a65748bfe7
commit 6f69de39b2

@ -84,7 +84,10 @@ case "${ACTION}" in
docker stop "$ID" docker stop "$ID"
docker rm "$ID" docker rm "$ID"
done done
docker rmi -f $(docker images | grep 'btcpayserver' | awk '{print $3}') IMAGE_IDS=$(docker images | grep 'btcpayserver' | awk '{print $3}')
if [ -n "$IMAGE_IDS" ]; then
docker rmi -f $IMAGE_IDS
fi
rm -r /opt/docker2/compose/btcpayserver 2>/dev/null rm -r /opt/docker2/compose/btcpayserver 2>/dev/null
rm -rf /opt/docker2/compose/btcpayserver/btcpayserver-docker 2>/dev/null # Removing the btcpayserver-docker directory rm -rf /opt/docker2/compose/btcpayserver/btcpayserver-docker 2>/dev/null # Removing the btcpayserver-docker directory
;; ;;

Loading…
Cancel
Save