mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
Fixed install script systemd service script path
This commit is contained in:
1 parent
aa2e79b101
commit
292ecbf166
1 file changed
+11
-10
+11
-10
@@ -165,21 +165,22 @@ read choice
|
||||
if [ "$choice" == "y" ] || [ "$choice" == "Y" ]; then
|
||||
|
||||
# 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
|
||||
service_unit="[Unit]
|
||||
Description=Spoolman
|
||||
Description=Spoolman
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=$spoolman_dir/scripts/start.sh
|
||||
WorkingDirectory=$spoolman_dir
|
||||
Restart=always
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=$spoolman_dir/scripts/start.sh
|
||||
WorkingDirectory=$spoolman_dir
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
"
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
"
|
||||
|
||||
# Specify the service name
|
||||
service_name="Spoolman"
|
||||
|
||||
Reference in new issue
Block a user