Reverted testing the requirement changes, added messaging, and gencode

remote to reload nginx after the configuration gets writte

Modified-by: llnu <llnu@protonmail.ch>
This commit is contained in:
llnu 2020-05-11 09:26:05 +02:00
parent 42125df313
commit 3141840cf4
3 changed files with 7 additions and 5 deletions

View File

@ -6,16 +6,14 @@ case "$__target_host" in
# Copy a cool motd from the type's file directory
__motd --source "$__files/motd"
# __package emacs --state present
__timezone Europe/Zurich
__my_computer
# __my_nginx
__my_nginx
__my_nginx_site woo.com
__my_nginx_site chee.se
require="__my_nginx" __my_nginx_site woo.com
require="__my_nginx" __my_nginx_site chee.se
;;
esac

View File

@ -0,0 +1,3 @@
if grep -q "^__your_type/object/id:conf_file_changed" "$__messages_in"; then
echo "service nginx reload"
fi

View File

@ -15,3 +15,4 @@ server {
}
EOF
echo "conf_file_changed" >> "$__messages_out"