apt-get update
This commit is contained in:
parent
3907cea1dd
commit
5c9c195a33
15
README.md
15
README.md
|
@ -9,20 +9,7 @@ bash install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### configure a minimal smtp server so automated emails (cron etc) can be sent
|
||||||
|
|
||||||
### mini_sendmail
|
|
||||||
```
|
|
||||||
wget http://www.acme.com/software/mini_sendmail/mini_sendmail-1.3.6.tar.gz
|
|
||||||
tar zxvf mini_sendmail-1.3.6.tar.gz
|
|
||||||
cd mini_sendmail-1.3.6/
|
|
||||||
make
|
|
||||||
cp mini_sendmail /usr/local/bin
|
|
||||||
gzip mini_sendmail.8
|
|
||||||
cp mini_sendmail.8.gz /usr/local/share/man/man8
|
|
||||||
```
|
|
||||||
|
|
||||||
# configure a minimal smtp server so automated emails (cron etc) can be sent
|
|
||||||
apt -y install exim4-daemon-light mailutils
|
apt -y install exim4-daemon-light mailutils
|
||||||
sed -i "s|dc_eximconfig_configtype='local'|dc_eximconfig_configtype='internet'|g" /etc/exim4/update-exim4.conf.conf
|
sed -i "s|dc_eximconfig_configtype='local'|dc_eximconfig_configtype='internet'|g" /etc/exim4/update-exim4.conf.conf
|
||||||
/usr/sbin/update-exim4.conf
|
/usr/sbin/update-exim4.conf
|
||||||
|
|
|
@ -22,12 +22,16 @@ fi
|
||||||
|
|
||||||
# check for existing web server software installs
|
# check for existing web server software installs
|
||||||
if [ -d "/etc/apache2/" ] || [ -d "/etc/php/" ] || [ -d "/etc/varnish/" ]; then
|
if [ -d "/etc/apache2/" ] || [ -d "/etc/php/" ] || [ -d "/etc/varnish/" ]; then
|
||||||
|
echo
|
||||||
echo "WARNING: Apache, Varnish and/or PHP are already installed."
|
echo "WARNING: Apache, Varnish and/or PHP are already installed."
|
||||||
echo "This installer will overwrite existing configurations."
|
echo "This installer will overwrite existing configurations."
|
||||||
echo -e "You have five seconds to execute ctrl-c to cancel this install.\a"
|
echo -e "You have five seconds to execute ctrl-c to cancel this install.\a"
|
||||||
|
echo
|
||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
|
||||||
# install pwgen, used to create random passwords
|
# install pwgen, used to create random passwords
|
||||||
apt -y install pwgen
|
apt -y install pwgen
|
||||||
|
|
||||||
|
@ -156,7 +160,6 @@ apt -y install php-bz2 php-tcpdf
|
||||||
cd /usr/local/src
|
cd /usr/local/src
|
||||||
wget https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-all-languages.tar.gz
|
wget https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-all-languages.tar.gz
|
||||||
tar zxf phpMyAdmin-5.1.0-all-languages.tar.gz
|
tar zxf phpMyAdmin-5.1.0-all-languages.tar.gz
|
||||||
cd phpMyAdmin-5.1.0-all-languages
|
|
||||||
rm -r phpMyAdmin-5.1.0-all-languages/setup/ phpMyAdmin-5.1.0-all-languages/test/
|
rm -r phpMyAdmin-5.1.0-all-languages/setup/ phpMyAdmin-5.1.0-all-languages/test/
|
||||||
blowfish_secret=`pwgen 32 -1`
|
blowfish_secret=`pwgen 32 -1`
|
||||||
echo '<?php' > phpMyAdmin-5.1.0-all-languages/config.inc.php
|
echo '<?php' > phpMyAdmin-5.1.0-all-languages/config.inc.php
|
||||||
|
|
Loading…
Reference in New Issue
Block a user