diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-12-26 01:56:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-12-26 01:56:46 -0300 |
commit | 042cc90fad9f88e8834052441110c1dae5ffa809 (patch) | |
tree | 09170d92036b4f5bfea04fcecc1ecf79e205f560 /share | |
parent | 54c1158aff8b987dea88b35597047fafe92cd0a7 (diff) | |
download | hydra-042cc90fad9f88e8834052441110c1dae5ffa809.tar.gz hydra-042cc90fad9f88e8834052441110c1dae5ffa809.tar.bz2 |
Fix: hydractl: trac-upgrade: check for Trac installation
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/trac-upgrade | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hydractl/trac-upgrade b/share/hydractl/trac-upgrade index 31e8f52..c5774f9 100755 --- a/share/hydractl/trac-upgrade +++ b/share/hydractl/trac-upgrade @@ -30,6 +30,15 @@ fi # Upgrade for instance in `find $BASE -maxdepth 2 -name trac`; do + # Check for Trac + # + # Do this inside the loop to avoid giving an error + # message if there's no trac instance + if ! which trac-admin &> /dev/null; then + echo "Could not find a trac-admin executable, aborting" + exit 1 + fi + ( echo "Upgrading trac instance $instance..." cd $instance |