bin/edconf: validate caddy config
This commit is contained in:
parent
fb8600cbe6
commit
e8c2f0809f
|
@ -27,7 +27,7 @@ case "$sel" in
|
||||||
(/etc/default/grub) sudoedit "$sel" && sudo grub-mkconfig -o /boot/grub/grub.cfg;;
|
(/etc/default/grub) sudoedit "$sel" && sudo grub-mkconfig -o /boot/grub/grub.cfg;;
|
||||||
(/etc/locale.gen) sudoedit "$sel" && sudo locale-gen;;
|
(/etc/locale.gen) sudoedit "$sel" && sudo locale-gen;;
|
||||||
(/etc/nginx/*) sudoedit "$sel" && nginx -t && nginx -s reload;;
|
(/etc/nginx/*) sudoedit "$sel" && nginx -t && nginx -s reload;;
|
||||||
(/etc/caddy/*) sudoedit "$sel" && sudo systemctl reload-or-restart caddy;;
|
(/etc/caddy/*) sudoedit "$sel" && caddy validate --config /etc/caddy/Caddyfile && sudo systemctl reload-or-restart caddy;;
|
||||||
(/etc/ssh/*) sudoedit "$sel" && sudo systemctl reload-or-restart sshd;;
|
(/etc/ssh/*) sudoedit "$sel" && sudo systemctl reload-or-restart sshd;;
|
||||||
(*) $(test -w "$sel" || echo sudo) "$EDITOR" "$sel";;
|
(*) $(test -w "$sel" || echo sudo) "$EDITOR" "$sel";;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue