This is just another way of saying:
#!/bin/bash set -ex # Added line yum update -y yum groupinstall -y "Web Server" "MySQL Database" "PHP Support" service httpd start chkconfig httpd on
[bash manual] says:
All single-character parameters used with the built-in set (see Set Builtin) can be used as options when invoking the shell
[set reference] says:
allows you to change shell parameter values ββand set positional parameters or display variable shell names and values.
-x
Print a trace of simple commands, commands, case commands, select commands and arithmetic for commands and their arguments or related word lists after they are expanded and before they are executed. The value of the PS4 variable is expanded, and the result of the value is displayed before the command and its extended arguments.
-e
Exit immediately if the pipeline (see Pipelines), which can consist of a single simple command (see Simple commands), a list (see Lists), or a compound command (see compound commands) returns a non-zero status.
source share