fuss with error messages
This commit is contained in:
parent
88afc70eea
commit
5552b43133
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ chattrfailed() {
|
||||||
set +e
|
set +e
|
||||||
rm -rf $chatlogdir
|
rm -rf $chatlogdir
|
||||||
echo
|
echo
|
||||||
echo "ERROR: could not set append only attribute in ${chatlogdir}"
|
echo "ERROR: could not set append only attribute on ${chatlogdir}/${chatlog}"
|
||||||
echo " does your file system support 'chattr +a' ?"
|
echo " does your file system support 'chattr +a' ?"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ install() {
|
||||||
# check for root perms
|
# check for root perms
|
||||||
if ! [ "$(id -u)" = 0 ]; then
|
if ! [ "$(id -u)" = 0 ]; then
|
||||||
echo
|
echo
|
||||||
echo "ERROR: please run install with root permission" >&2
|
echo "ERROR: please run install with root permissions" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue