diff options
Diffstat (limited to 'acid/cyche-remove')
-rwxr-xr-x | acid/cyche-remove | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/acid/cyche-remove b/acid/cyche-remove index 1aa5f36..c988efe 100755 --- a/acid/cyche-remove +++ b/acid/cyche-remove @@ -5,16 +5,11 @@ # Stop the service <name>, which was previously managed by cychedelic, and # remove associated files. -cd "/services/$1" +name=$(cat "/services/$1/.git/previous_slug") +[ -z "$name" ] && name="$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 +docker compose --project-name "$name" down echo "Removing files..." -cd ".." -rm -rf "$1" +rm -rf "/services/$1" echo "Done." |