Browse Source

Merge "Make a symlink to deployment scripts in /etc"

tags/4.2.0
Jenkins 2 years ago
parent
commit
ee875c63bb

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

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

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

@@ -37,6 +37,8 @@ tar -vxf %{SOURCE0} -C %{name}-%{version}
37 37
 cd %{name}-%{version}
38 38
 mkdir -p %{buildroot}/var/www/nailgun/plugins/
39 39
 cp -r ${ name } %{buildroot}/var/www/nailgun/plugins/
40
+mkdir -p %{buildroot}/etc/fuel/plugins
41
+ln -s ../../../var/www/nailgun/plugins/${ name }/deployment_scripts %{buildroot}/etc/fuel/plugins/${ name }
40 42
 
41 43
 %%clean
42 44
 rm -rf %{buildroot}
@@ -62,3 +64,4 @@ fi
62 64
 
63 65
 %%files
64 66
 /var/www/nailgun/plugins/${ name }
67
+/etc/fuel/plugins/${ name }

Loading…
Cancel
Save