mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
correct postinst dir install path, force bash on ubuntu
This commit is contained in:
parent
7b010fdaf6
commit
a83cc6c7a5
@ -71,10 +71,10 @@ make
|
|||||||
%post
|
%post
|
||||||
echo Creating laminar user with home in %{_sharedstatedir}/laminar
|
echo Creating laminar user with home in %{_sharedstatedir}/laminar
|
||||||
useradd -r -d %{_sharedstatedir}/laminar -s %{_sbindir}/nologin laminar
|
useradd -r -d %{_sharedstatedir}/laminar -s %{_sbindir}/nologin laminar
|
||||||
mkdir -p %{_sharedstatedir}/laminar/{jobs,archive,nodes,scripts}
|
mkdir -p %{_sharedstatedir}/laminar/cfg/{jobs,nodes,scripts}
|
||||||
chown -R laminar: %{_sharedstatedir}/laminar
|
chown -R laminar: %{_sharedstatedir}/laminar
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rpmbuild -ba laminar.spec
|
rpmbuild -ba laminar.spec
|
||||||
mv rpmbuild/RPMS/x86_64/laminar-0.1-1.x86_64.rpm /output/
|
mv rpmbuild/RPMS/x86_64/laminar-0.1-1.x86_64.rpm /output/
|
||||||
EOS
|
EOS
|
||||||
|
@ -59,10 +59,10 @@ Depends: libboost-filesystem1.55.0
|
|||||||
Description: Lightweight Continuous Integration Service
|
Description: Lightweight Continuous Integration Service
|
||||||
EOF
|
EOF
|
||||||
cat <<EOF > laminar/DEBIAN/postinst
|
cat <<EOF > laminar/DEBIAN/postinst
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
echo Creating laminar user with home in /var/lib/laminar
|
echo Creating laminar user with home in /var/lib/laminar
|
||||||
useradd -r -d /var/lib/laminar -s /usr/sbin/nologin laminar
|
useradd -r -d /var/lib/laminar -s /usr/sbin/nologin laminar
|
||||||
mkdir -p /var/lib/laminar/{jobs,archive,nodes,scripts}
|
mkdir -p /var/lib/laminar/cfg/{jobs,nodes,scripts}
|
||||||
chown -R laminar: /var/lib/laminar
|
chown -R laminar: /var/lib/laminar
|
||||||
EOF
|
EOF
|
||||||
chmod +x laminar/DEBIAN/postinst
|
chmod +x laminar/DEBIAN/postinst
|
||||||
|
Loading…
Reference in New Issue
Block a user