mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-17 19:16:25 +00:00
Update config_menu.sh
This commit is contained in:
@@ -23,6 +23,7 @@ VENV_PATH="/opt/googletrans-env"
|
|||||||
|
|
||||||
MONITOR_SERVICE="proxmenux-monitor.service"
|
MONITOR_SERVICE="proxmenux-monitor.service"
|
||||||
MONITOR_UNIT_FILE="/etc/systemd/system/${MONITOR_SERVICE}"
|
MONITOR_UNIT_FILE="/etc/systemd/system/${MONITOR_SERVICE}"
|
||||||
|
MONITOR_CONFIG_DIR="/root/.config/proxmenux-monitor"
|
||||||
|
|
||||||
if [[ -f "$UTILS_FILE" ]]; then
|
if [[ -f "$UTILS_FILE" ]]; then
|
||||||
source "$UTILS_FILE"
|
source "$UTILS_FILE"
|
||||||
@@ -59,13 +60,22 @@ uninstall_proxmenux_monitor() {
|
|||||||
echo " - Unit file ${MONITOR_UNIT_FILE} does not exist (ok)"
|
echo " - Unit file ${MONITOR_UNIT_FILE} does not exist (ok)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 4. Reload systemd
|
# 4. Remove config directory (~/.config/proxmenux-monitor)
|
||||||
|
if [ -d "${MONITOR_CONFIG_DIR}" ]; then
|
||||||
|
echo " - Removing config dir ${MONITOR_CONFIG_DIR}..."
|
||||||
|
rm -rf "${MONITOR_CONFIG_DIR}"
|
||||||
|
else
|
||||||
|
echo " - Config dir ${MONITOR_CONFIG_DIR} does not exist (ok)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 5. Reload systemd
|
||||||
echo " - Recargando systemd..."
|
echo " - Recargando systemd..."
|
||||||
systemctl daemon-reload > /dev/null 2>&1
|
systemctl daemon-reload > /dev/null 2>&1
|
||||||
systemctl reset-failed > /dev/null 2>&1 || true
|
systemctl reset-failed > /dev/null 2>&1 || true
|
||||||
|
|
||||||
echo "==> Service ${MONITOR_SERVICE} uninstalled."
|
echo "==> Service ${MONITOR_SERVICE} uninstalled."
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
detect_installation_type() {
|
detect_installation_type() {
|
||||||
|
|||||||
Reference in New Issue
Block a user