Files
cis/script/host/nginx/restartIfConfigurationIsValid.sh
2025-11-27 21:25:40 +01:00

8 lines
100 B
Bash
Executable File

#!/bin/bash
nginx -t &> /dev/null \
&& systemctl restart nginx.service \
&& exit 0
exit 1