Commit 96826506 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Nginx install on Ubuntu Xenil fixes

parent 1fd781f5
...@@ -428,7 +428,8 @@ install_Virus (){ ...@@ -428,7 +428,8 @@ install_Virus (){
#------------------------------------------------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------------------------------------------------
install_packet "amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj p7zip unrar-free ripole rpm nomarch lzop \ install_packet "amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj p7zip unrar-free ripole rpm nomarch lzop \
cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl \ cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl \
libnet-ident-perl zip libnet-dns-perl" "amavisd, spamassassin, clamav" libnet-ident-perl zip libnet-dns-perl postgrey" "amavisd, spamassassin, clamav"
sed -i "s/^AllowSupplementaryGroups.*/AllowSupplementaryGroups true/" /etc/clamav/clamd.conf
/etc/init.d/spamassassin stop /etc/init.d/spamassassin stop
insserv -rf spamassassin insserv -rf spamassassin
} }
...@@ -523,10 +524,28 @@ update-rc.d -f apache2 remove >> /dev/null ...@@ -523,10 +524,28 @@ update-rc.d -f apache2 remove >> /dev/null
fi fi
service nginx start >> /dev/null service nginx start >> /dev/null
if [[ $family == "Ubuntu" ]]; then
debconf-apt-progress -- apt-get install -y php7.0-fpm
debconf-apt-progress -- apt-get install -y php7.0-opcache php7.0-fpm php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-imap php7.0-cli \
php7.0-cgi php-pear php-auth php7.0-mcrypt mcrypt imagemagick libruby php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 \
php7.0-tidy php7.0-xmlrpc php7.0-xsl memcached php-memcache php-imagick php-gettext php7.0-zip php7.0-mbstring
phpenmod mcrypt
phpenmod mbstring
debconf-apt-progress -- apt-get install -y php-apcu
sed -i "s/^cgi.fix_pathinfo=.*/cgi.fix_pathinfo=0/" /etc/php/7.0/fpm/php.ini
tz=$(cat /etc/timezone | sed 's/\//\\\//g')
sed -i "s/^date.timezone=.*/date.timezone=""$ls""/" /etc/php/7.0/fpm/php.ini
else
debconf-apt-progress -- apt-get install -y php5-fpm debconf-apt-progress -- apt-get install -y php5-fpm
debconf-apt-progress -- apt-get install -y php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt \ debconf-apt-progress -- apt-get install -y php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt \
php5-memcache php5-memcached php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached php5-memcache php5-memcached php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached
debconf-apt-progress -- apt-get install -y php-apc debconf-apt-progress -- apt-get install -y php-apc
fi
#PHP Configuration Stuff Goes Here #PHP Configuration Stuff Goes Here
debconf-apt-progress -- apt-get install -y fcgiwrap debconf-apt-progress -- apt-get install -y fcgiwrap
reset reset
...@@ -721,6 +740,7 @@ while true; do ...@@ -721,6 +740,7 @@ while true; do
install_basic; install_DashNTP; install_MySQL; install_MySQLDovecot; install_Virus; install_$server; install_hhvm install_basic; install_DashNTP; install_MySQL; install_MySQLDovecot; install_Virus; install_$server; install_hhvm
create_ispconfig_configuration; install_PureFTPD; install_Fail2BanDovecot; install_Fail2BanRulesDovecot; create_ispconfig_configuration; install_PureFTPD; install_Fail2BanDovecot; install_Fail2BanRulesDovecot;
install_ISPConfig install_ISPConfig
read -n 1 -s -p "Press any key to continue"
;; ;;
*Tasksel* ) *Tasksel* )
...@@ -730,31 +750,39 @@ while true; do ...@@ -730,31 +750,39 @@ while true; do
*headend* ) *headend* )
install_tvheadend install_tvheadend
check_port 9981 "HTS tvheadend" check_port 9981 "HTS tvheadend"
read -n 1 -s -p "Press any key to continue"
;; ;;
*Syncthing* ) *Syncthing* )
install_syncthing install_syncthing
check_port 8384 "Syncthing" check_port 8384 "Syncthing"
read -n 1 -s -p "Press any key to continue"
;; ;;
*CUPS* ) *CUPS* )
install_cups install_cups
read -n 1 -s -p "Press any key to continue"
;; ;;
*VPN* ) *VPN* )
install_vpn_server install_vpn_server
read -n 1 -s -p "Press any key to continue"
;; ;;
*OMV* ) *OMV* )
install_omv install_omv
read -n 1 -s -p "Press any key to continue"
;; ;;
*hole* ) *hole* )
curl -L install.pi-hole.net | bash curl -L install.pi-hole.net | bash
read -n 1 -s -p "Press any key to continue"
;; ;;
*Minidlna* ) *Minidlna* )
install_packet "minidlna" "Install lightweight DLNA/UPnP-AV server" install_packet "minidlna" "Install lightweight DLNA/UPnP-AV server"
check_port 8200 check_port 8200
read -n 1 -s -p "Press any key to continue"
;; ;;
*Transmission* ) *Transmission* )
install_transmission install_transmission
check_port 9091 check_port 9091
read -n 1 -s -p "Press any key to continue"
;; ;;
esac esac
done done
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment