#!/bin/bash # wgd.sh - Copyright(C) 2024 Donald Zou [https://github.com/donaldzou] # Under Apache-2.0 License app_name="dashboard.py" app_official_name="WGDashboard" venv_python="./venv/bin/python3" venv_gunicorn="./venv/bin/gunicorn" PID_FILE=./gunicorn.pid environment=$(if [[ $ENVIRONMENT ]]; then echo $ENVIRONMENT; else echo 'develop'; fi) if [[ $CONFIGURATION_PATH ]]; then cb_work_dir=$CONFIGURATION_PATH/letsencrypt/work-dir cb_config_dir=$CONFIGURATION_PATH/letsencrypt/config-dir else cb_work_dir=/etc/letsencrypt cb_config_dir=/var/lib/letsencrypt fi dashes='------------------------------------------------------------' equals='============================================================' helpMsg="[WGDashboard] Please check ./log/install.txt for more details. For further assistance, please open a ticket on https://github.com/donaldzou/WGDashboard/issues/new/choose, I'm more than happy to help :)" help () { printf "=================================================================================\n" printf "+ by Donald Zou - https://github.com/donaldzou +\n" printf "=================================================================================\n" printf "| Usage: ./wgd.sh