#!/bin/bash # cyche-remove # # Stop the service , which was previously managed by cychedelic, and # remove associated files. cd "/services/$1" file=$(cat '.git/previous_file') slug=$(cat '.git/previous_slug') [ -n "$slug" ] && slug="--project-name $slug" docker compose $slug --file "$file" down \ --remove-orphans echo "Removing files..." cd ".." rm -rf "$1" echo "Done."