bundles: fix some icinga checks
This commit is contained in:
parent
11071914e0
commit
5419bf31fb
6 changed files with 17 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
statusfile=/var/tmp/unattended_upgrades.status
|
||||
statusfile="/var/tmp/unattended_upgrades.status"
|
||||
if ! [[ -f "$statusfile" ]]
|
||||
then
|
||||
echo "Status file not found"
|
||||
|
|
|
@ -16,7 +16,7 @@ then
|
|||
fi
|
||||
fi
|
||||
|
||||
statusfile=/var/tmp/unattended_upgrades.status
|
||||
statusfile="/var/tmp/unattended_upgrades.status"
|
||||
# Workaround, because /var/tmp is usually 1777
|
||||
[[ "$UID" == 0 ]] && chown root:root "$statusfile"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue