Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- timestamp1=$(date "+%Y%m%d-%H%M%S")
- RED=`tput setaf 1`
- GREEN=`tput setaf 2`
- NC=`tput sgr0`
- echo "Database backup"
- wp db export
- echo -e "${RED}Update Wordpress core...${NC}\n"
- wp core update
- echo -e "${GREEN}Wordpress core updated!${NC}\n"
- echo -e "${RED}Update Wordpress plugins...${NC}\n"
- wp plugin update --all
- echo -e "${GREEN}Wordpress plugins updated!${NC}\n"
- echo -e "${RED}Update Wordpress themes...${NC}\n"
- wp theme update --all
- echo -e "${GREEN}Wordpress themes updated!${NC}\n"
- echo -e "${RED}Update Wordpress core languages...${NC}\n"
- wp core language update
- echo -e "${GREEN}Wordpress core languages updated!${NC}\n"
Add Comment
Please, Sign In to add comment