clean: remove references to /home/prathiyuman paths and remove nested folder

This commit is contained in:
2026-09-18 15:26:17 +05:30
parent ace6ad1dbd
commit 1da4595666
2 changed files with 2 additions and 10 deletions
+1 -5
View File
@@ -6,14 +6,10 @@ set -e
SERVICE_NAME="contec-forwarder"
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
# Auto-detect script directory or fallback to standard path
# Auto-detect script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -f "${SCRIPT_DIR}/main.py" ]; then
WORKING_DIR="${SCRIPT_DIR}"
elif [ -d "/home/prathiyuman/Prathiyuman/ContecMonitor/fiveparaminte-main" ]; then
WORKING_DIR="/home/prathiyuman/Prathiyuman/ContecMonitor/fiveparaminte-main"
elif [ -d "/home/prathiyuman/ContecMonitor" ]; then
WORKING_DIR="/home/prathiyuman/ContecMonitor"
else
WORKING_DIR="${PWD}"
fi
+1 -5
View File
@@ -6,14 +6,10 @@ set -e
SERVICE_NAME="contec-forwarder"
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
# Auto-detect script directory or fallback to standard path
# Auto-detect script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -f "${SCRIPT_DIR}/main.py" ]; then
WORKING_DIR="${SCRIPT_DIR}"
elif [ -d "/home/prathiyuman/Prathiyuman/ContecMonitor/fiveparaminte-main" ]; then
WORKING_DIR="/home/prathiyuman/Prathiyuman/ContecMonitor/fiveparaminte-main"
elif [ -d "/home/prathiyuman/ContecMonitor" ]; then
WORKING_DIR="/home/prathiyuman/ContecMonitor"
else
WORKING_DIR="${PWD}"
fi