Fixed install script systemd service script path
This commit is contained in:
@@ -165,21 +165,22 @@ 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]
|
||||||
Description=Spoolman
|
Description=Spoolman
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=$spoolman_dir/scripts/start.sh
|
ExecStart=$spoolman_dir/scripts/start.sh
|
||||||
WorkingDirectory=$spoolman_dir
|
WorkingDirectory=$spoolman_dir
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
"
|
"
|
||||||
|
|
||||||
# Specify the service name
|
# Specify the service name
|
||||||
service_name="Spoolman"
|
service_name="Spoolman"
|
||||||
|
|||||||
Reference in New Issue
Block a user