From 64573a9f588537a0aaeee2a5770af42bfa90f4f8 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 13 Mar 2022 12:49:18 +0100 Subject: [PATCH] Correct stupid errors --- conf-sync.sh | 2 +- install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf-sync.sh b/conf-sync.sh index 4a6d3df..1ae243f 100755 --- a/conf-sync.sh +++ b/conf-sync.sh @@ -19,7 +19,7 @@ for dir in $sync_directory/*; do echo "pulling $dir" git -C $dir pull 2>/dev/null >/dev/null if [ -e $dir/install.sh ]; then - echo "Running $dir\'s install script..." + echo "Running $dir's install script..." $dir/install.sh fi elif [ $REMOTE = $BASE ]; then diff --git a/install.sh b/install.sh index 355e1b4..531e747 100755 --- a/install.sh +++ b/install.sh @@ -9,9 +9,9 @@ sudo cp $(dirname "$0")/systemd-templates/conf-sync.service /etc/systemd/system/ sudo sed -i -e "s/PH_USER/$(whoami)/g" /etc/systemd/system/conf-sync.service sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/conf-sync.service if [ "$client_type" = "server" ]; then - sudo cp $(dirname "$0")/systemd-templates/dns-update.timer /etc/systemd/system/conf-sync.timer + sudo cp $(dirname "$0")/systemd-templates/conf-sync-server.timer /etc/systemd/system/conf-sync.timer else - sudo cp $(dirname "$0")/systemd-templates/dns-update.timer /etc/systemd/system/conf-sync.timer + sudo cp $(dirname "$0")/systemd-templates/conf-sync-desktop.timer /etc/systemd/system/conf-sync.timer fi echo "Reloading Systemd..."