From 4baf284f2ac8f4abea6de3bef0177dbe00b17c99 Mon Sep 17 00:00:00 2001 From: Lucas Vinicius Hartmann Date: Wed, 6 Sep 2023 20:52:07 -0300 Subject: [PATCH] Do not install systemd service on docker. --- background_installer.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/background_installer.sh b/background_installer.sh index 3761596..bd5cf9a 100755 --- a/background_installer.sh +++ b/background_installer.sh @@ -181,7 +181,6 @@ function install_all_libs { install_glue_generator "$1" install_opendnp3 "$1" install_libmodbus "$1" - install_systemd_service "$1" } function finalize_install { ( @@ -272,7 +271,8 @@ elif [ "$1" == "linux" ]; then install_py_deps "sudo -H" install_all_libs sudo - + install_systemd_service sudo + #Detecting OS type OS_TYPE="" OS=$(awk '/NAME=/' /etc/*-release | sed -n '1 p' | cut -d= -f2 | cut -d\" -f2 | cut -d" " -f1) @@ -295,7 +295,6 @@ elif [ "$1" == "linux" ]; then finalize_install - elif [ "$1" == "docker" ]; then echo "Installing OpenPLC on Linux inside Docker" linux_install_deps @@ -313,6 +312,7 @@ elif [ "$1" == "rpi" ]; then install_py_deps "sudo -H" install_all_libs sudo + install_systemd_service sudo finalize_install elif [ "$1" == "neuron" ]; then @@ -333,11 +333,13 @@ elif [ "$1" == "neuron" ]; then install_py_deps "sudo -H" install_all_libs sudo + install_systemd_service sudo finalize_install elif [ "$1" == "custom" ]; then echo "Installing OpenPLC on Custom Platform" install_all_libs + install_systemd_service sudo finalize_install else