diff --git a/debian/resources/fail2ban.sh b/debian/resources/fail2ban.sh index dcf1e6b..09793bd 100755 --- a/debian/resources/fail2ban.sh +++ b/debian/resources/fail2ban.sh @@ -13,14 +13,14 @@ echo "Install Fail2ban" apt-get install -y --force-yes fail2ban #move the filters -cp resources/fail2ban/freeswitch-dos.conf /etc/fail2ban/filter.d/freeswitch-dos.conf -cp resources/fail2ban/freeswitch-ip.conf /etc/fail2ban/filter.d/freeswitch-ip.conf -cp resources/fail2ban/freeswitch-404.conf /etc/fail2ban/filter.d/freeswitch-404.conf -cp resources/fail2ban/freeswitch.conf /etc/fail2ban/filter.d/freeswitch.conf -cp resources/fail2ban/fusionpbx.conf /etc/fail2ban/filter.d/fusionpbx.conf -cp resources/fail2ban/nginx-404.conf /etc/fail2ban/filter.d/nginx-404.conf -cp resources/fail2ban/nginx-dos.conf /etc/fail2ban/filter.d/nginx-dos.conf -cp resources/fail2ban/jail.local /etc/fail2ban/jail.local +cp fail2ban/freeswitch-dos.conf /etc/fail2ban/filter.d/freeswitch-dos.conf +cp fail2ban/freeswitch-ip.conf /etc/fail2ban/filter.d/freeswitch-ip.conf +cp fail2ban/freeswitch-404.conf /etc/fail2ban/filter.d/freeswitch-404.conf +cp fail2ban/freeswitch.conf /etc/fail2ban/filter.d/freeswitch.conf +cp fail2ban/fusionpbx.conf /etc/fail2ban/filter.d/fusionpbx.conf +cp fail2ban/nginx-404.conf /etc/fail2ban/filter.d/nginx-404.conf +cp fail2ban/nginx-dos.conf /etc/fail2ban/filter.d/nginx-dos.conf +cp fail2ban/jail.local /etc/fail2ban/jail.local #update config if source is being used if [ $USE_FREESWITCH_SOURCE = true ]; then diff --git a/debian/resources/nginx.sh b/debian/resources/nginx.sh index 683e3b6..5293f6e 100755 --- a/debian/resources/nginx.sh +++ b/debian/resources/nginx.sh @@ -7,7 +7,7 @@ echo "Install the web server\n" apt-get install -y --force-yes nginx php5 php5-cli php5-fpm php5-pgsql php5-sqlite php5-odbc php5-curl php5-imap php5-mcrypt #enable fusionpbx nginx config -cp resources/nginx/fusionpbx /etc/nginx/sites-available/fusionpbx +cp nginx/fusionpbx /etc/nginx/sites-available/fusionpbx ln -s /etc/nginx/sites-available/fusionpbx /etc/nginx/sites-enabled/fusionpbx #self signed certificate