Skip to content

Commit

Permalink
Merge pull request #238 from skupjoe/master
Browse files Browse the repository at this point in the history
Use bash file testing instead of ls
  • Loading branch information
jjethwa authored Jun 30, 2020
2 parents 2097dc2 + 7bd5b4a commit 6df2acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/opt/setup/60-icingaweb2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mysql_wait \
"${ICINGAWEB2_MYSQL_HOST}" \
"${ICINGAWEB2_MYSQL_PORT}"

if [ ! "$(ls -A /etc/icingaweb2/resources.ini)" ]; then
if [ ! -f /etc/icingaweb2/resources.ini ]; then
echo "=> Copying fresh config-files for /etc/icingaweb2"
mkdir -p /etc/icingaweb2
cp -R /etc/icingaweb2.dist/* /etc/icingaweb2/
Expand Down

0 comments on commit 6df2acc

Please sign in to comment.