You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
237 B
10 lines
237 B
#!/bin/bash
|
|
if [[ $EUID -ne 0 ]]; then
|
|
echo "You must be a root user" 2>&1
|
|
exit 1
|
|
else
|
|
service nginx configtest && service nginx restart
|
|
service php5-fpm restart
|
|
# no varnish configtest! be careful
|
|
service varnish restart
|
|
fi
|
|
|