Browse Source

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
Georgy Kibardin 2 years ago
parent
commit
3f33bf09e3

+ 3
- 0
fuel_plugin_builder/templates/v2/build/plugin_rpm.spec.mako View File

@@ -32,9 +32,12 @@ tar -vxf %{SOURCE0} -C %{name}-%{version}
32 32
 cd %{name}-%{version}
33 33
 mkdir -p %{buildroot}/var/www/nailgun/plugins/
34 34
 cp -r ${ name } %{buildroot}/var/www/nailgun/plugins/
35
+mkdir -p %{buildroot}/etc/fuel/plugins
36
+ln -s ../../../var/www/nailgun/plugins/${ name }/deployment_scripts %{buildroot}/etc/fuel/plugins/${ name }
35 37
 
36 38
 %%clean
37 39
 rm -rf %{buildroot}
38 40
 
39 41
 %%files
40 42
 /var/www/nailgun/plugins/${ name }
43
+/etc/fuel/plugins/${ name }

+ 3
- 0
fuel_plugin_builder/templates/v3/build/plugin_rpm.spec.mako View File

@@ -33,6 +33,8 @@ tar -vxf %{SOURCE0} -C %{name}-%{version}
33 33
 cd %{name}-%{version}
34 34
 mkdir -p %{buildroot}/var/www/nailgun/plugins/
35 35
 cp -r ${ name } %{buildroot}/var/www/nailgun/plugins/
36
+mkdir -p %{buildroot}/etc/fuel/plugins
37
+ln -s ../../../var/www/nailgun/plugins/${ name }/deployment_scripts %{buildroot}/etc/fuel/plugins/${ name }
36 38
 
37 39
 %%clean
38 40
 rm -rf %{buildroot}
@@ -56,3 +58,4 @@ fi
56 58
 
57 59
 %%files
58 60
 /var/www/nailgun/plugins/${ name }
61
+/etc/fuel/plugins/${ name }

Loading…
Cancel
Save