Skip to content

Commit bf292f8

Browse files
replace the file with /usr/lib/ with /etc/
1 parent 4981393 commit bf292f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lgsm/functions/command_install_init.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ WantedBy=multi-user.target'
2727
file_c=$(printf "$file_c" | sed s/'gamename'/$gamename/g | sed "s|path|$path|g" | sed s/'whoami'/$(whoami)/g)
2828
fn_print_ok_nl "Generated the file contents"
2929
fn_print_information_nl "Enter the password of root:"
30-
su -c "echo \"$file_c\" > /usr/lib/systemd/system/${selfname}-lgsm.service" || return 1 && return 0
30+
su -c "echo \"$file_c\" > /etc/systemd/system/${selfname}-lgsm.service" || return 1 && return 0
3131
}
3232

3333
fn_install_systemd
@@ -36,8 +36,8 @@ then
3636
fn_print_error_nl "su exited with non 0 exit code.. something went wrong";
3737
fn_script_log_fatal "su exited with non 0 exit code."
3838
else
39-
fn_print_complete_nl "Placed the file in /usr/lib/systemd/system/ as ${selfname}-lgsm.service"
40-
fn_print_information_nl "run \`systemctl enable ${selfname}-lgsm.service\`, to enable the game on boot"
39+
fn_print_complete_nl "Placed the file in /etc/systemd/system/ as ${selfname}-lgsm.service"
40+
fn_print_information_nl "run \`systemctl enable ${selfname}-lgsm.service\` (as root), to enable the game on boot"
4141
fn_script_log_pass "sucessfullly installed the systemd service file"
4242
fi
4343
core_exit.sh

0 commit comments

Comments
 (0)