Guest User

Untitled

a guest
Feb 13th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #!/bin/bash
  2. timestamp1=$(date "+%Y%m%d-%H%M%S")
  3. RED=`tput setaf 1`
  4. GREEN=`tput setaf 2`
  5. NC=`tput sgr0`
  6.  
  7. echo "Database backup"
  8. wp db export
  9.  
  10. echo -e "${RED}Update Wordpress core...${NC}\n"
  11. wp core update
  12. echo -e "${GREEN}Wordpress core updated!${NC}\n"
  13.  
  14. echo -e "${RED}Update Wordpress plugins...${NC}\n"
  15. wp plugin update --all
  16. echo -e "${GREEN}Wordpress plugins updated!${NC}\n"
  17.  
  18. echo -e "${RED}Update Wordpress themes...${NC}\n"
  19. wp theme update --all
  20. echo -e "${GREEN}Wordpress themes updated!${NC}\n"
  21.  
  22. echo -e "${RED}Update Wordpress core languages...${NC}\n"
  23. wp core language update
  24. echo -e "${GREEN}Wordpress core languages updated!${NC}\n"
Add Comment
Please, Sign In to add comment