-
-
Save anonymous/6140645 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wordpress-new: | |
cmd.script: | |
- cwd: /var/www/ | |
- source: salt://wordpress/install-new.sh | |
- unless: test -f /var/wp-data/db.sql | |
- order: last | |
# The shell script below needs to be executed every 5 minutes, | |
# but only after the wordpress-new command has completed | |
/etc/mysql/mysqldump.sh: | |
file.managed: | |
- source: salt://mysql/mysqldump.sh | |
- mode: 744 | |
cron.present: | |
- user: root | |
- minute: '*/5' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment