Skip to content

Commit f03041b

Browse files
committed
added flsk_nginx installation
1 parent 6f6722c commit f03041b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#################################################
3+
# #
4+
# A shell script to install Nginx and Flask #
5+
# #
6+
#################################################
7+
8+
# check if the current user is root
9+
if [[ $(/usr/bin/id -u) != "0" ]]; then
10+
echo -e "This looks like a 'non-root' user.\nPlease switch to 'root' and run the script again."
11+
exit
12+
fi
13+
14+
prerequisites(){
15+
yum update -y
16+
17+
}

0 commit comments

Comments
 (0)