From 1a6f82d5353ec7e501f3e60c2880e54fe6139941 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Wed, 21 Dec 2022 10:08:57 +0100 Subject: [PATCH] Fix stupid error in install script --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index b459fb9..4872d19 100755 --- a/install.sh +++ b/install.sh @@ -16,15 +16,15 @@ fi if [ -x /usr/bin/apt-get ]; then echo "APT detected, copying Systemd unit to system directory, using APT template..." - $sudo cp systemd-templates/packages-upgrade-apt.service /etc/systemd/system/packages-upgrade.service + $sudo cp $run_directory/systemd-templates/packages-upgrade-apt.service /etc/systemd/system/packages-upgrade.service elif [ -x /usr/bin/pacman ]; then echo "Pacman detected, copying Systemd unit to system directory, using Pacman template..." - $sudo cp systemd-templates/packages-upgrade-pacman.service /etc/systemd/system/packages-upgrade.service + $sudo cp $run_directory/systemd-templates/packages-upgrade-pacman.service /etc/systemd/system/packages-upgrade.service else echo "No supported package manager found. Only APT and Pacman are currently supported. Exiting..." exit 1 fi -$sudo cp systemd-templates/packages-upgrade.timer /etc/systemd/system/packages-upgrade.timer +$sudo cp $run_directory/systemd-templates/packages-upgrade.timer /etc/systemd/system/packages-upgrade.timer echo "Reloading Systemd..." $sudo systemctl daemon-reload