enable colours in more scripts change fail2ban.s to use arguments.sh to initialize it's variables
@@ -1,13 +1,13 @@
#!/bin/sh
#move to script directory so all relative paths work
-#cd "$(dirname "$0")"
+cd "$(dirname "$0")"
-#initialize variable encase we are called directly
-[ -z $USE_FREESWITCH_SOURCE ] && USE_FREESWITCH_SOURCE=false
+. ./colors.sh
+. ./arguments.sh
#send a message
-echo "Install Fail2ban"
+verbose "Installing Fail2ban"
#add the dependencies
apt-get install -y --force-yes fail2ban
@@ -1,7 +1,13 @@
+#move to script directory so all relative paths work
+
-echo "Configure IPTables"
+verbose "Configuring IPTables"
#run iptables commands
iptables -A INPUT -i lo -j ACCEPT
-echo "Install the web server\n"
+verbose "Installing the web server"
#install dependencies
apt-get install -y --force-yes nginx php5 php5-cli php5-fpm php5-pgsql php5-sqlite php5-odbc php5-curl php5-imap php5-mcrypt
-echo "Configure PHP"
+verbose "Configuring PHP"
#update config if source is being used
sed 's#post_max_size = .*#post_max_size = 80M#g' -i /etc/php5/fpm/php.ini