From bf292f8a676466f83997f2ae1fdb671a5e600f95 Mon Sep 17 00:00:00 2001 From: ur name Date: Fri, 1 Jan 2021 06:11:32 +0000 Subject: [PATCH] replace the file with /usr/lib/ with /etc/ --- lgsm/functions/command_install_init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/command_install_init.sh b/lgsm/functions/command_install_init.sh index 52d3b1d02..0b2464432 100755 --- a/lgsm/functions/command_install_init.sh +++ b/lgsm/functions/command_install_init.sh @@ -27,7 +27,7 @@ WantedBy=multi-user.target' file_c=$(printf "$file_c" | sed s/'gamename'/$gamename/g | sed "s|path|$path|g" | sed s/'whoami'/$(whoami)/g) fn_print_ok_nl "Generated the file contents" fn_print_information_nl "Enter the password of root:" - su -c "echo \"$file_c\" > /usr/lib/systemd/system/${selfname}-lgsm.service" || return 1 && return 0 + su -c "echo \"$file_c\" > /etc/systemd/system/${selfname}-lgsm.service" || return 1 && return 0 } fn_install_systemd @@ -36,8 +36,8 @@ then fn_print_error_nl "su exited with non 0 exit code.. something went wrong"; fn_script_log_fatal "su exited with non 0 exit code." else - fn_print_complete_nl "Placed the file in /usr/lib/systemd/system/ as ${selfname}-lgsm.service" - fn_print_information_nl "run \`systemctl enable ${selfname}-lgsm.service\`, to enable the game on boot" + fn_print_complete_nl "Placed the file in /etc/systemd/system/ as ${selfname}-lgsm.service" + fn_print_information_nl "run \`systemctl enable ${selfname}-lgsm.service\` (as root), to enable the game on boot" fn_script_log_pass "sucessfullly installed the systemd service file" fi core_exit.sh