mirror of
https://github.com/m8tin/cis.git
synced 2025-12-06 07:48:26 +01:00
more nginx scripts
This commit is contained in:
7
script/host/nginx/restartIfConfigurationIsValid.sh
Executable file
7
script/host/nginx/restartIfConfigurationIsValid.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
nginx -t &> /dev/null \
|
||||
&& systemctl restart nginx.service \
|
||||
&& exit 0
|
||||
|
||||
exit 1
|
||||
Reference in New Issue
Block a user