From 22fb175d62816dcd7c2168c67721658d51b7e225 Mon Sep 17 00:00:00 2001 From: Greg Szabo Date: Wed, 26 Jul 2017 21:07:27 +0000 Subject: [PATCH] CentOS build fix: home folder of app is readable by all --- build/basecoin/DEBIAN/preinst | 1 + build/ethermint/DEBIAN/preinst | 1 + build/gaia/DEBIAN/preinst | 1 + build/spectemplates/basecoin.spec | 1 + build/spectemplates/ethermint.spec | 1 + build/spectemplates/gaia.spec | 1 + build/spectemplates/trackomatron.spec | 1 + build/trackomatron/DEBIAN/preinst | 1 + 8 files changed, 8 insertions(+) diff --git a/build/basecoin/DEBIAN/preinst b/build/basecoin/DEBIAN/preinst index 731ea7e28..8fc1ec82a 100644 --- a/build/basecoin/DEBIAN/preinst +++ b/build/basecoin/DEBIAN/preinst @@ -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 ;; diff --git a/build/ethermint/DEBIAN/preinst b/build/ethermint/DEBIAN/preinst index 57cb44880..829112e6b 100644 --- a/build/ethermint/DEBIAN/preinst +++ b/build/ethermint/DEBIAN/preinst @@ -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 ;; diff --git a/build/gaia/DEBIAN/preinst b/build/gaia/DEBIAN/preinst index cd1a6c2dd..382fa419f 100644 --- a/build/gaia/DEBIAN/preinst +++ b/build/gaia/DEBIAN/preinst @@ -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 ;; diff --git a/build/spectemplates/basecoin.spec b/build/spectemplates/basecoin.spec index b8336ad94..addbf714b 100644 --- a/build/spectemplates/basecoin.spec +++ b/build/spectemplates/basecoin.spec @@ -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 diff --git a/build/spectemplates/ethermint.spec b/build/spectemplates/ethermint.spec index 364459328..9d059821e 100644 --- a/build/spectemplates/ethermint.spec +++ b/build/spectemplates/ethermint.spec @@ -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 diff --git a/build/spectemplates/gaia.spec b/build/spectemplates/gaia.spec index a8b8503f4..2ab976b27 100644 --- a/build/spectemplates/gaia.spec +++ b/build/spectemplates/gaia.spec @@ -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 diff --git a/build/spectemplates/trackomatron.spec b/build/spectemplates/trackomatron.spec index 28a985067..3a3396679 100644 --- a/build/spectemplates/trackomatron.spec +++ b/build/spectemplates/trackomatron.spec @@ -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 diff --git a/build/trackomatron/DEBIAN/preinst b/build/trackomatron/DEBIAN/preinst index 199320043..ac866587a 100644 --- a/build/trackomatron/DEBIAN/preinst +++ b/build/trackomatron/DEBIAN/preinst @@ -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 ;;