Skip to content

Commit

Permalink
compatibility with some aws kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszklim committed Aug 20, 2019
1 parent 23f07ca commit 707e8de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/checks/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/opt/heartbeat/scripts/checks/services.sh
/opt/heartbeat/scripts/checks/space.sh

if [ ! -f /proc/1/environ ] || ! grep -q lxc /proc/1/environ; then
if [ ! -f /proc/1/environ ] || ! grep -q lxc /proc/1/environ 2>/dev/null; then
/opt/heartbeat/scripts/facts/list-docker-containers.sh
/opt/heartbeat/scripts/facts/list-libvirt-machines.sh
/opt/heartbeat/scripts/facts/storage/list-mapped-luks-partitions.sh |tr '[:upper:]' '[:lower:]'
Expand Down
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mkdir -p /var/cache/heartbeat /etc/heartbeat

if [ "`uname`" = "Linux" ] \
&& ! grep -q lxc /proc/1/environ \
&& ! grep -q lxc /proc/1/environ 2>/dev/null \
&& ! grep -q /var/cache/heartbeat /etc/fstab; then
echo "setting up cache directory"
echo "tmpfs /var/cache/heartbeat tmpfs noatime,size=16m 0 0" >>/etc/fstab
Expand All @@ -13,7 +13,7 @@ fi
/opt/heartbeat/scripts/setup/configure-hostname.sh
/opt/heartbeat/scripts/setup/configure-symlinks.sh

if [ ! -f /proc/1/environ ] || ! grep -q lxc /proc/1/environ; then
if [ ! -f /proc/1/environ ] || ! grep -q lxc /proc/1/environ 2>/dev/null; then
echo "setting up SMART configuration files and templates"
/opt/heartbeat/scripts/setup/configure-smart.sh

Expand Down

0 comments on commit 707e8de

Please sign in to comment.