Skip to content

Commit

Permalink
prune: Only attempt to stop pot if it is running (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
grembo authored Jul 28, 2024
1 parent 1a5db00 commit bacd889
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion share/pot/prune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bacd889

Please sign in to comment.