Make a symlink to deployment scripts in /etc
On master node there is no /etc/fuel/plugins/<plugin name> directory. This causes failures of a plugin shell tasks on master node because before execution there is an attempt to set current directory to it. In order to fix this we make a symlink: /etc/fuel/plugins/<plugin name> -> /var/www/nailgun/plugins/<plugin name>/deployment_scripts Change-Id: Idbd2d94462b72a7f98967b379f504c245a6c7135 Closes-Bug: #1603987
This commit is contained in:
parent
c2d906f5ae
commit
3f33bf09e3
|
@ -32,9 +32,12 @@ tar -vxf %{SOURCE0} -C %{name}-%{version}
|
|||
cd %{name}-%{version}
|
||||
mkdir -p %{buildroot}/var/www/nailgun/plugins/
|
||||
cp -r ${ name } %{buildroot}/var/www/nailgun/plugins/
|
||||
mkdir -p %{buildroot}/etc/fuel/plugins
|
||||
ln -s ../../../var/www/nailgun/plugins/${ name }/deployment_scripts %{buildroot}/etc/fuel/plugins/${ name }
|
||||
|
||||
%%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%%files
|
||||
/var/www/nailgun/plugins/${ name }
|
||||
/etc/fuel/plugins/${ name }
|
||||
|
|
|
@ -33,6 +33,8 @@ tar -vxf %{SOURCE0} -C %{name}-%{version}
|
|||
cd %{name}-%{version}
|
||||
mkdir -p %{buildroot}/var/www/nailgun/plugins/
|
||||
cp -r ${ name } %{buildroot}/var/www/nailgun/plugins/
|
||||
mkdir -p %{buildroot}/etc/fuel/plugins
|
||||
ln -s ../../../var/www/nailgun/plugins/${ name }/deployment_scripts %{buildroot}/etc/fuel/plugins/${ name }
|
||||
|
||||
%%clean
|
||||
rm -rf %{buildroot}
|
||||
|
@ -56,3 +58,4 @@ fi
|
|||
|
||||
%%files
|
||||
/var/www/nailgun/plugins/${ name }
|
||||
/etc/fuel/plugins/${ name }
|
Loading…
Reference in New Issue