Your team uses the deployment script
deploy_web.shto prepare a server for the web team:#!/bin/bash # Prepare the server for the web team sudo apt update sudo apt install -y nginx sudo useradd -m webadmin mkdir /home/netops/web cd /home/netops/web echo "Welcome to the web server" > index.html sudo systemctl start nginx echo "Web server ready"Answer the question below
Which command of deploy_web.sh creates a user?
Line 1 is the shebang and line 2 is a comment.
Lines 3 to 9 form four blocks:
Figure 1 - The Four Blocks of deploy_web.sh
Answer the question below
Which line of the script starts the service?
To run the script, you make it executable and you run it like this:
netops@automation:~/automation$ chmod +x deploy_web.sh netops@automation:~/automation$ ./deploy_web.sh ... Web server readyThe last line,
Web server ready, shows that Bash ran the script to the end.In the lab, run
deploy_web.shto get the flag.Answer the question below
Enter the flag you obtained.