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..."