#!/bin/bash #Variables will be filled in from the mainscript: #PILER_VAR HOSTNAME=$(hostname -f) echo "Ensure your Hostname is set to your Piler FQDN!" echo $HOSTNAME if [ "$HOSTNAME" != "$PILER_DOM" ] then echo "Hostname doesn't match Piler_Domain! Check install.sh, /etc/hosts, /etc/hostname." && exit else echo "Hostname matches PILER_DOMAIN, so starting installation." fi apt install -y gpg apt-transport-https lsb-release wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add - echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list apt update && apt full-upgrade -y apt install -y mc sysstat build-essential libwrap0-dev libpst-dev tnef libytnef0-dev unrtf catdoc libtre-dev tre-agrep poppler-utils libzip-dev unixodbc libpq5 software-properties-common libpoppler-dev openssl libssl-dev memcached telnet nginx mariadb-server default-libmysqlclient-dev python-mysqldb gcc libwrap0 libzip4 latex2rtf latex2html catdoc tnef libpq5 zipcmp zipmerge ziptool libsodium23 apt update && apt install -y php$PHP_VER-{fpm,common,ldap,mysql,cli,opcache,phpdbg,gd,memcache,json,readline,zip} apt purge -y postfix cat > /etc/mysql/conf.d/mailpiler.conf <> /usr/local/etc/piler/config-site.php <