#!/usr/bin/env bash config() { if [ "$(whoami)" = "root" ] then echo "It is not recommended to run this script as root. As a normal user, elevation will be prompted if needed." read -rp "Continue anyway? (y/n) " confirm /dev/null then echo "PostgreSQL does not seems to be installed in $PG_PATH" read -rep "Please specify the PostgreSQL data folder: " PG_PATH "$FM_PATH/.awktmpfile" && mv "$FM_PATH/.awktmpfile" "$FM_PATH/docker-compose.yml" docker-compose pull docker-compose up -d } upgrade_elastic() { config read -rp "Continue with upgrading? (y/n) " confirm