system-config/docker/hound/resync-hound.sh

17 lines
289 B
Bash
Executable File

#!/bin/bash
rc=0
update-hound-config || rc=$?
if [[ ${rc} == 2 ]]; then
echo "No project modified"
exit 0
elif [[ ${rc} == 0 ]]; then
echo "*** New projects found, restarting houndd"
supervisorctl restart houndd
else
echo "*** Unknown exit: ${rc}"
exit ${rc}
fi