Guest User

Untitled

a guest
Jan 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. sudo add-apt-repository ppa:certbot/certbot -y && apt-get update -y && apt-get upgrade -y
  2. sudo apt-get install zip unzip tree unattended-upgrades sshguard postfix
  3. nginx python-certbot-nginx mysql-server php-fpm php-mysql php-mbstring php-mcrypt -y
  4. sudo ufw enable && ufw allow 22/tcp 25/tcp 80/tcp 443/tcp 9000/tcp
  5.  
  6. 0 1 * * * for dir in /var/www/html/*/; do cd "$dir" && /usr/local/bin/wp plugin update --all --allow-root; done
  7. 0 2 * * * for dir in /var/www/html/*/; do cd "$dir" && /usr/local/bin/wp core update --allow-root; done
  8. 0 3 * * * for dir in /var/www/html/*/; do cd "$dir" && /usr/local/bin/wp theme update --all --allow-root; done
Add Comment
Please, Sign In to add comment