Fix post install hook

This commit is contained in:
huazhihao 2015-08-16 21:52:30 +08:00
parent a6607881d0
commit 0d26823206
1 changed files with 2 additions and 3 deletions

View File

@ -1,9 +1,8 @@
name=${1-"xenserver-fuel-plugin*"}
cd /var/www/nailgun/plugins/%{name}
dockerctl copy cleardb.py nailgun:/tmp/cleardb.py
dockerctl shell nailgun /tmp/cleardb.py
dockerctl shell nailgun rm /tmp/cleardb.py
dockerctl copy newrelease.yaml nailgun:/tmp/newrelease.yaml
dockerctl shell nailgun manage.py loaddata /tmp/newrelease.yaml
dockerctl shell nailgun rm /tmp/newrelease.yaml
fuel rel --sync-deployment-tasks --dir /etc/puppet/
fuel rel --sync-deployment-tasks --dir /etc/puppet/