Files
cis/script/host/nginx/restartIfConfigurationIsValid.sh
2025-06-21 01:14:51 +02:00

8 lines
100 B
Bash
Executable File

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