Skip to content

Instantly share code, notes, and snippets.

@xiaolei
xiaolei / rqlite.sh
Created November 26, 2021 06:36
Shell script to manage rqlite process
#!/bin/bash
if [ "${BASH_VERSINFO:-0}" -lt 4 ]
then
echo "bash version: ${BASH_VERSION}"
echo "Current bash version doesn't support associative arrays, require bash version >=4"
exit 1
fi
hostname=$(hostname)