misc
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user