This commit is contained in:
2021-05-12 11:31:55 +02:00
parent 918220ba07
commit cecb09a12e
8 changed files with 182 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ fi
sleep 2
apt-get --yes install ufw
# ufw allow ssh # knockd will open the ssh port
ufw allow ssh
ufw allow http
ufw allow https

View File

@@ -134,7 +134,7 @@ echo -e "\033[35;1mInstalling phpMyAdmin \033[0m"
# echo -e "\033[92;1mYou can access it at yourip/phpmyadmin\033[Om"
# install from source
apt-get install php-{mbstring,zip,gd,xml,pear,gettext,cgi}
apt-get --yes install php-{mbstring,zip,gd,xml,pear,gettext,cgi}
cd /var/www/html/
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip
unzip phpMyAdmin-latest-all-languages.zip

View File

@@ -39,4 +39,4 @@ touch /var/spool/cron/crontabs/root
crontab -l > /tmp/mycron
echo "30 2 */2 * * /usr/local/bin/mysqlbackup.sh" >> /tmp/mycron
crontab /tmp/mycron
rm /tmp/mycron
rm -f /tmp/mycron