From bacd889c2372cc90eefea2bcedc578770ac1fa3b Mon Sep 17 00:00:00 2001 From: grembo Date: Sun, 28 Jul 2024 11:02:54 +0200 Subject: [PATCH] prune: Only attempt to stop pot if it is running (#295) --- CHANGELOG.md | 5 ++++- share/pot/prune.sh | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 212c97aa..a4673b17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## Unrelease +## Unreleased ### Added - import/prepare: Support setting a default signature public key to verify pot signature (#296) +### Fixed +- prune: Only attempt to stop pot if it is running (#295) + ## [0.16.0] 2023-12-30 ### Added - tinirc: Write tinirc's pid to /tmp/tinirc.pid (#277) diff --git a/share/pot/prune.sh b/share/pot/prune.sh index 1b0e7be6..0648deb8 100644 --- a/share/pot/prune.sh +++ b/share/pot/prune.sh @@ -54,7 +54,9 @@ _prune_pot() if [ "$_dry_run" = "YES" ]; then return fi - pot-cmd stop "$_pname" + if _is_pot_running "$_pname" ; then + pot-cmd stop "$_pname" + fi if ! pot-cmd destroy -p "$_pname" ; then _qerror "$_quiet" "Error while pruning $_pname" else