adding semi-colons

This commit is contained in:
ducoterra
2018-11-25 16:28:12 -05:00
parent 9a3a4bed6f
commit 9705f3bc7b

View File

@@ -4,26 +4,26 @@
################################################################################
# check if root
if [ $EUID -ne 0 ]; then
echo -e "This script must be run as root"
exit 1
fi
if [ $EUID -ne 0 ] ; then
echo -e "This script must be run as root";
exit 1;
fi;
# source vars
./vars
./vars;
tput setaf 2
echo -e "Installing dependencies"
tput setaf 9
tput setaf 2;
echo -e "Installing dependencies";
tput setaf 9;
# create necessary dirs
if [ ! -d $logdir ] ; then
mkdir $logdir
fi
mkdir $logdir;
fi;
# install dependencies
packages=(gcc wget nginx ufw make sqlite3 bzip2 openssl libffi-dev libssl-dev libsqlite3-dev zlib1g-dev libbz2-dev libpq-dev)
echo -e "\tRunning apt update"
apt update 1> $aptlogloc 2>> $aptlogloc 3>> $aptlogloc
packages=(gcc wget nginx ufw make sqlite3 bzip2 openssl libffi-dev libssl-dev libsqlite3-dev zlib1g-dev libbz2-dev libpq-dev);
echo -e "\tRunning apt update";
apt update 1> $aptlogloc 2>> $aptlogloc 3>> $aptlogloc;
for package in ${packages[@]};
do
echo -e "\tInstalling $package"