Skip to content

Commit

Permalink
Warn if using buster OS #56
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jul 27, 2022
1 parent c615b17 commit 3c8d4ea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ if ! docker-compose version > /dev/null 2>&1; then
exit 1
fi

# Check for RPi Issue with Buster
if [[ -f "/etc/os-release" ]]; then
OS_VER=`grep PRETTY /etc/os-release | cut -d= -f2 | cut -d\" -f2`
if [[ "$OS_VER" == "Raspbian GNU/Linux 10 (buster)" ]]
then
echo "WARNING: You are running ${OS_VER}"
echo " This OS version has a bug in the libseccomp2 library that"
echo " causes the pypowerwall container to fail."
echo " See details: https://github.com/jasonacox/Powerwall-Dashboard/issues/56"
echo ""
read -r -p "Setup - Proceed? [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]
then
echo ""
else
echo "Cancel"
exit 1
fi
fi
fi

PW_ENV_FILE="pypowerwall.env"
GF_ENV_FILE="grafana.env"
CURRENT=`cat tz`
Expand Down

0 comments on commit 3c8d4ea

Please sign in to comment.