make install commands noninteractive
This commit is contained in:
parent
fdad410e58
commit
da201b3026
14
install.sh
14
install.sh
|
@ -36,13 +36,13 @@ apt-get update
|
|||
sed -i "s|exit 101|exit 0|g" /usr/sbin/policy-rc.d
|
||||
|
||||
# install pwgen, used to create random passwords
|
||||
apt -y install pwgen
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install pwgen
|
||||
|
||||
# install mariadb (mysql)
|
||||
if [ ! -d "/etc/mysql/" ]; then
|
||||
|
||||
MARIADBPWORD=`pwgen 12 1`
|
||||
apt -y install mariadb-client mariadb-server
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install mariadb-client mariadb-server
|
||||
# set unix_socket auth for root
|
||||
mysql -e "GRANT ALL ON *.* TO 'root'@'localhost' IDENTIFIED VIA unix_socket WITH GRANT OPTION"
|
||||
# create nagios user for monitoring server status only
|
||||
|
@ -52,7 +52,7 @@ if [ ! -d "/etc/mysql/" ]; then
|
|||
fi
|
||||
|
||||
# Apache w/ PHP
|
||||
apt -y install apache2 libapache2-mod-authnz-pam libwww-perl php-fpm php-cli php-ssh2 php-curl php-dev php-enchant php-mysql php-pear php-gd php-http php-imap php-intl php-mysql php-yaml php-pspell php-raphf php-ssh2 php-sqlite3 php-tidy php-xml php-xmlrpc php-zip php-mbstring php-imagick php-redis redis pwauth libapache2-mod-authnz-external
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-authnz-pam libwww-perl php-fpm php-cli php-ssh2 php-curl php-dev php-enchant php-mysql php-pear php-gd php-http php-imap php-intl php-mysql php-yaml php-pspell php-raphf php-ssh2 php-sqlite3 php-tidy php-xml php-xmlrpc php-zip php-mbstring php-imagick php-redis redis pwauth libapache2-mod-authnz-external
|
||||
|
||||
## http2 handled automatically now.
|
||||
## http2 doesn't support logio, so look in to vhost log format
|
||||
|
@ -132,7 +132,7 @@ else
|
|||
fi
|
||||
|
||||
# Webalizer
|
||||
apt -y install webalizer
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install webalizer
|
||||
cp etc/logrotate.d/apache2 /etc/logrotate.d/apache2
|
||||
chmod 644 /etc/logrotate.d/apache2
|
||||
rm /etc/cron.daily/webalizer
|
||||
|
@ -148,7 +148,7 @@ chmod 644 /srv/www/html/status.php
|
|||
chown vhost:vhost /srv/www/html/status.php
|
||||
|
||||
# phpMyAdmin
|
||||
apt -y install php-bz2 php-tcpdf
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install php-bz2 php-tcpdf
|
||||
cd /usr/local/src
|
||||
wget https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.tar.gz
|
||||
tar zxf phpMyAdmin-5.2.0-all-languages.tar.gz
|
||||
|
@ -166,7 +166,7 @@ find /srv/www/html/phpMyAdmin -type f -exec chmod 644 {} +
|
|||
chown -R vhost:vhost /srv/www/html/phpMyAdmin
|
||||
|
||||
# jailkit
|
||||
apt -y install jailkit
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install jailkit
|
||||
sed -i 's|paths = ssh|paths = /usr/bin/ssh*|' /etc/jailkit/jk_init.ini
|
||||
sed -i "s|paths = perl, /usr/lib/perl, /usr/lib/perl5, /usr/share/perl, /usr/share/perl5|paths = /usr/bin/perl, /usr/lib/x86_64-linux-gnu/perl, /usr/lib/x86_64-linux-gnu/perl-base, /usr/share/perl, /usr/share/perl5|g" /etc/jailkit/jk_init.ini
|
||||
echo "" >> /etc/jailkit/jk_init.ini
|
||||
|
@ -188,7 +188,7 @@ echo "comment = the ruby interpreter and libraries" >> /etc/jailkit/jk_init.ini
|
|||
echo "paths = /usr/bin/erb. /usr/bin/gem, /usr/bin/irb, /usr/bin/rdoc, /usr/bin/ri, /usr/bin/ruby, /usr/share/doc/ruby, /usr/share/man/man1/ruby.1.gz, /usr/lib/ruby/, /usr/lib/x86_64-linux-gnu/ruby/" >> /etc/jailkit/jk_init.ini
|
||||
|
||||
# varnish
|
||||
apt -y install varnish
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install varnish
|
||||
cp -a etc/varnish/* /etc/varnish/
|
||||
find /etc/varnish/ -type d -exec chmod 755 {} +
|
||||
find /etc/varnish/ -type f -exec chmod 644 {} +
|
||||
|
|
Loading…
Reference in New Issue
Block a user