Fixed install script systemd service script path

This commit is contained in:
Donkie
2023-10-21 23:20:39 +02:00
parent aa2e79b101
commit 292ecbf166

View File

@@ -165,7 +165,8 @@ read choice
if [ "$choice" == "y" ] || [ "$choice" == "Y" ]; then if [ "$choice" == "y" ] || [ "$choice" == "Y" ]; then
# Get the parent directory of the installer script # Get the parent directory of the installer script
spoolman_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
spoolman_dir=$(dirname "$script_dir")
# Define the systemd service unit file # Define the systemd service unit file
service_unit="[Unit] service_unit="[Unit]