Skip to content
Snippets Groups Projects
Commit 48141cfb authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

icingacli - detect unreadable config or non writable output file

parent 98356696
No related branches found
No related tags found
No related merge requests found
...@@ -313,8 +313,8 @@ function processCheck(){ ...@@ -313,8 +313,8 @@ function processCheck(){
# $myFullscript $myparams | tee $_outfile # $myFullscript $myparams | tee $_outfile
eval $myFullscript $myparams > $_outfile eval $myFullscript $myparams > $_outfile
rc=$? rc=$?
if [ $rc -ne 0 ]; then if [ ! -w $_outfile ]; then
echo "ERROR: unable to write file $_outfile. Maybe the setup is inclomplete or someone created a file as root." echo "ERROR: file $_outfile is not writable. Maybe the setup is inclomplete or someone created a file as root... just guessing."
ls -ld ${dir_data} $_outfile ls -ld ${dir_data} $_outfile
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment