File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ install_from_git() {
562562 # Construct the full Git URL with branch
563563 FULL_GIT_URL=" $GITHUB_URL -b $BRANCH "
564564
565- set_auto_update " $APP_NAME_LOWER -AUTO-UPDATE "
565+ set_auto_update " $sg_auto_update "
566566
567567 log " Cloning the $APP_NAME repository from GitHub..."
568568 create_and_own_dir " $GIT_INSTALL_DIR "
@@ -888,7 +888,7 @@ install_conda_env() {
888888 log " Checking conda environment $CONDA_ENV_NAME ..."
889889 if ! " $CONDA_EXECUTABLE " env list | grep -q " $CONDA_ENV_NAME " ; then
890890 log " Creating Conda environment $CONDA_ENV_NAME ..."
891- " $CONDA_EXECUTABLE " create -n " $CONDA_ENV_NAME " python=3.8 -y || { log " ERROR" " Failed to create Conda environment $CONDA_ENV_NAME " ; exit 1; }
891+ " $CONDA_EXECUTABLE " create -n " $CONDA_ENV_NAME " python=3.11 -y || { log " ERROR" " Failed to create Conda environment $CONDA_ENV_NAME " ; exit 1; }
892892 # install the dependencies
893893 update_dependencies
894894 else
Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ PROJECT_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
5555FLASK_APP_PATH=" ${FLASK_APP_PATH:- $PROJECT_DIR / app.py} "
5656REQUIREMENTS_FILE=" ${REQUIREMENTS_FILE:- $PROJECT_DIR / requirements.txt} "
5757FLASK_PORT=" ${FLASK_PORT:- 5050} "
58- $ APP_NAME =" systemguard"
58+ APP_NAME=" systemguard"
5959LOG_FILE=" /home/$( whoami) /logs/$APP_NAME -flask.log"
6060USERNAME=" $( whoami) "
6161CONDA_ENV_NAME=$APP_NAME
6262GIT_REMOTE_URL=" https://github.com/codeperfectplus/SystemDashboard" # Set this if you want to add a remote
6363
6464# Fetch from bashrc for auto-update
65- auto_update=$( grep -E " ^export $APP_NAME -AUTO-UPDATE =" /home/$( whoami) /.bashrc | cut -d' =' -f2)
65+ auto_update=$( grep -E " ^export sg_auto_update =" /home/$( whoami) /.bashrc | cut -d' =' -f2)
6666echo " auto-update:" $auto_update
6767#
6868# Ensure log directory exists
You can’t perform that action at this time.
0 commit comments