summaryrefslogtreecommitdiff
path: root/share/hydractl/puppet-reset-stored
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 18:07:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 18:07:24 -0300
commit9330113df08676ec82639aec8cca290709b7936e (patch)
tree93600833840c1d0f6d7420511335bf12bfc51195 /share/hydractl/puppet-reset-stored
parentc040869beb026ecc309bf1c2ccf627261f41bc46 (diff)
downloadhydra-9330113df08676ec82639aec8cca290709b7936e.tar.gz
hydra-9330113df08676ec82639aec8cca290709b7936e.tar.bz2
Action backup-site now dumping db and storing things in the right place
Diffstat (limited to 'share/hydractl/puppet-reset-stored')
-rwxr-xr-xshare/hydractl/puppet-reset-stored6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/hydractl/puppet-reset-stored b/share/hydractl/puppet-reset-stored
index 48a3dc1..090917f 100755
--- a/share/hydractl/puppet-reset-stored
+++ b/share/hydractl/puppet-reset-stored
@@ -3,4 +3,8 @@
# Reset puppet stored configs
#
-mysql puppet -e "drop database puppet ; create database puppet;"
+# Load.
+source $APP_BASE/lib/hydra/functions || exit 1
+hydra_config_load
+
+hydra_truncate_database puppet