diff --git a/debian/resources/fail2ban.sh b/debian/resources/fail2ban.sh index dcf1e6b..13503c0 100755 --- a/debian/resources/fail2ban.sh +++ b/debian/resources/fail2ban.sh @@ -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 diff --git a/debian/resources/iptables.sh b/debian/resources/iptables.sh index e1601ef..188e024 100755 --- a/debian/resources/iptables.sh +++ b/debian/resources/iptables.sh @@ -1,7 +1,13 @@ #!/bin/sh +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +. ./colors.sh +. ./arguments.sh + #send a message -echo "Configure IPTables" +verbose "Configuring IPTables" #run iptables commands iptables -A INPUT -i lo -j ACCEPT diff --git a/debian/resources/nginx.sh b/debian/resources/nginx.sh index ab96711..e95117c 100755 --- a/debian/resources/nginx.sh +++ b/debian/resources/nginx.sh @@ -1,7 +1,13 @@ #!/bin/sh +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +. ./colors.sh +. ./arguments.sh + #send a message -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 diff --git a/debian/resources/php.sh b/debian/resources/php.sh index d284d71..2e1c20a 100755 --- a/debian/resources/php.sh +++ b/debian/resources/php.sh @@ -1,7 +1,13 @@ #!/bin/sh +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +. ./colors.sh +. ./arguments.sh + #send a message -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