Commit c091ceeb authored by Jonathan Bryant's avatar Jonathan Bryant 💬

Update distro.sh

parent a8f19251
......@@ -4,16 +4,7 @@ FILES="ssh_authorized_keys ssh_host_key container_token"
check_penguin() {
if [ -z "$(/usr/bin/lxc ls | /bin/grep 'penguin | RUNNING')" ]; then
if [ -n "$(/usr/bin/lxc ls | /bin/grep 'penguin_old')" ]; then
/usr/bin/lxc rename penguin_old penguin
/usr/bin/lxc start penguin
if [ -n "$?" ]; then
echo "Something went wrong with trying to recover penguin."
exit 1
fi
else
echo "Looks like penguin_old is gone. You might want to reinstall linux on chrome."
fi
echo "Penguin is not running."
exit 1
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment