Skip to content

Commit a08a05c

Browse files
chore: bug fixes
1 parent 870e0cc commit a08a05c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

improvments

Whitespace-only changes.

setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/scripts/dashboard.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ PROJECT_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
5555
FLASK_APP_PATH="${FLASK_APP_PATH:-$PROJECT_DIR/app.py}"
5656
REQUIREMENTS_FILE="${REQUIREMENTS_FILE:-$PROJECT_DIR/requirements.txt}"
5757
FLASK_PORT="${FLASK_PORT:-5050}"
58-
$APP_NAME="systemguard"
58+
APP_NAME="systemguard"
5959
LOG_FILE="/home/$(whoami)/logs/$APP_NAME-flask.log"
6060
USERNAME="$(whoami)"
6161
CONDA_ENV_NAME=$APP_NAME
6262
GIT_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)
6666
echo "auto-update:" $auto_update
6767
#
6868
# Ensure log directory exists

0 commit comments

Comments
 (0)