From 0d26823206015e94d5463159be4a970ef7bd302a Mon Sep 17 00:00:00 2001 From: huazhihao Date: Sun, 16 Aug 2015 21:52:30 +0800 Subject: [PATCH] Fix post install hook --- postinstall_hook.sh => post_install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename postinstall_hook.sh => post_install.sh (77%) diff --git a/postinstall_hook.sh b/post_install.sh similarity index 77% rename from postinstall_hook.sh rename to post_install.sh index e599688..cc1cda6 100644 --- a/postinstall_hook.sh +++ b/post_install.sh @@ -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/ \ No newline at end of file +fuel rel --sync-deployment-tasks --dir /etc/puppet/