1
0
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:
Oliver Giles 2015-12-06 11:41:46 +01:00
parent 7b010fdaf6
commit a83cc6c7a5
2 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ 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

View File

@ -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