Minor changes
This commit is contained in:
@@ -23,14 +23,16 @@ inotifywait --exclude .swp -m -e CREATE,CLOSE_WRITE,CLOSE,DELETE -r $CERT_DIR $P
|
|||||||
while read dir op file
|
while read dir op file
|
||||||
|
|
||||||
do
|
do
|
||||||
if [[ "${dir}" == "${CERT_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" ]]; then
|
|
||||||
|
if [[ "${dir}" == "${CERT_DIR}" && "${op}" == "CLOSE_WRITE" ]]; then
|
||||||
DOMAIN=$(echo $dir|cut -d / -f3)
|
DOMAIN=$(echo $dir|cut -d / -f3)
|
||||||
echo "New cert created: '$DOMAIN'"
|
echo "New cert created: '$DOMAIN'"
|
||||||
|
|
||||||
elif [[ "${dir}" == "${PROXY_CONFIG_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" || "${dir}" == "${PROXY_CONFIG_DIR}" && "${op}" == "CREATE" || "${dir}" == "${PROXY_CONFIG_DIR}" && "${op}" == "DELETE" ]] ;
|
elif [[ "${dir}" == "${PROXY_CONFIG_DIR}" && "${op}" == "CLOSE_WRITE" ]] || \
|
||||||
then
|
[[ "${dir}" == "${PROXY_CONFIG_DIR}" && "${op}" == "CREATE" ]] || \
|
||||||
|
[[ "${dir}" == "${PROXY_CONFIG_DIR}" && "${op}" == "DELETE" ]] ; then
|
||||||
echo "proxy config created, changed or deleted"
|
echo "proxy config created, changed or deleted"
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check services with running containers by roles
|
# Check services with running containers by roles
|
||||||
|
Reference in New Issue
Block a user