CentOS build fix: home folder of app is readable by all

This commit is contained in:
Greg Szabo 2017-07-26 21:07:27 +00:00
parent 1e033b6051
commit 22fb175d62
8 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,7 @@ case "$1" in
install|upgrade)
if ! grep -q '^basecoin:' /etc/passwd ; then
useradd -k /dev/null -r -m -b /etc basecoin
chmod 755 /etc/basecoin
fi
;;

View File

@ -17,6 +17,7 @@ case "$1" in
install|upgrade)
if ! grep -q '^ethermint:' /etc/passwd ; then
useradd -k /dev/null -r -m -b /etc ethermint
chmod 755 /etc/ethermint
fi
;;

View File

@ -17,6 +17,7 @@ case "$1" in
install|upgrade)
if ! grep -q '^gaia:' /etc/passwd ; then
useradd -k /dev/null -r -m -b /etc gaia
chmod 755 /etc/gaia
fi
;;

View File

@ -20,6 +20,7 @@ Basecoin is an ABCI application designed to be used with the Tendermint consensu
%pre
if ! %{__grep} -q '^%{name}:' /etc/passwd ; then
useradd -k /dev/null -r -m -b %{_sysconfdir} %{name}
chmod 755 %{_sysconfdir}/%{name}
fi
%prep

View File

@ -19,6 +19,7 @@ Ethermint enables ethereum to run as an ABCI application on tendermint and the C
%pre
if ! %{__grep} -q '^%{name}:' /etc/passwd ; then
useradd -k /dev/null -r -m -b %{_sysconfdir} %{name}
chmod 755 %{_sysconfdir}/%{name}
fi
%prep

View File

@ -19,6 +19,7 @@ Gaia description comes later.
%pre
if ! %{__grep} -q '^%{name}:' /etc/passwd ; then
useradd -k /dev/null -r -m -b %{_sysconfdir} %{name}
chmod 755 %{_sysconfdir}/%{name}
fi
%prep

View File

@ -19,6 +19,7 @@ This software is intended to create a space to easily send invoices between and
%pre
if ! %{__grep} -q '^%{name}:' /etc/passwd ; then
useradd -k /dev/null -r -m -b %{_sysconfdir} %{name}
chmod 755 %{_sysconfdir}/%{name}
fi
%prep

View File

@ -17,6 +17,7 @@ case "$1" in
install|upgrade)
if ! grep -q '^trackomatron:' /etc/passwd ; then
useradd -k /dev/null -r -m -b /etc trackomatron
chmod 755 /etc/trackomatron
fi
;;