clean: remove references to /home/prathiyuman paths and remove nested folder
This commit is contained in:
@@ -6,14 +6,10 @@ set -e
|
|||||||
SERVICE_NAME="contec-forwarder"
|
SERVICE_NAME="contec-forwarder"
|
||||||
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
|
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)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
if [ -f "${SCRIPT_DIR}/main.py" ]; then
|
if [ -f "${SCRIPT_DIR}/main.py" ]; then
|
||||||
WORKING_DIR="${SCRIPT_DIR}"
|
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
|
else
|
||||||
WORKING_DIR="${PWD}"
|
WORKING_DIR="${PWD}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
+1
-5
@@ -6,14 +6,10 @@ set -e
|
|||||||
SERVICE_NAME="contec-forwarder"
|
SERVICE_NAME="contec-forwarder"
|
||||||
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
|
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)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
if [ -f "${SCRIPT_DIR}/main.py" ]; then
|
if [ -f "${SCRIPT_DIR}/main.py" ]; then
|
||||||
WORKING_DIR="${SCRIPT_DIR}"
|
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
|
else
|
||||||
WORKING_DIR="${PWD}"
|
WORKING_DIR="${PWD}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user