From c62d19d53bd63b7310f03949cf40baf0b3a2e406 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Mon, 25 Sep 2017 15:33:26 +0000 Subject: [PATCH] working on systemd service --- ...r installing stuff in etc.sh => install-systemd-service} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename etc/change_hardcoded_world_and_username_manually_first/{runme after installing stuff in etc.sh => install-systemd-service} (85%) diff --git a/etc/change_hardcoded_world_and_username_manually_first/runme after installing stuff in etc.sh b/etc/change_hardcoded_world_and_username_manually_first/install-systemd-service similarity index 85% rename from etc/change_hardcoded_world_and_username_manually_first/runme after installing stuff in etc.sh rename to etc/change_hardcoded_world_and_username_manually_first/install-systemd-service index c605773..81b4772 100644 --- a/etc/change_hardcoded_world_and_username_manually_first/runme after installing stuff in etc.sh +++ b/etc/change_hardcoded_world_and_username_manually_first/install-systemd-service @@ -18,7 +18,11 @@ # instead of User=owner #Update the unit: -wget https://github.com/expertmm/EnlivenMinetest/raw/master/etc/change_hardcoded_username_first/mts-ENLIVEN.service +if [ -f mts-ENLIVEN.service ]; then +#clear old downloaded copy if exists in userspace +rm mts-ENLIVEN.service +fi +wget https://github.com/expertmm/EnlivenMinetest/raw/master/etc//home/owner/Documents/GitHub/EnlivenMinetest/etc/change_hardcoded_world_and_username_manually_first/install-systemd-service/mts-ENLIVEN.service echo "This will only work if you are using systemd." sudo mv -f mts-ENLIVEN.service /etc/init.d/ #? sudo mv -f mts-ENLIVEN.service /etc/systemd/system/