From 105057bff34cbf7e87f630223b756df509ec235e Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 22 Sep 2022 18:19:19 +0200 Subject: [PATCH] Add TODO on timer choice --- README.md | 1 + install.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f3661ce..56e2194 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,4 @@ Version 2 implementation works roughly as follows: ### TODO * Add install support for OpenBSD +* Replace desktop/server timer choice in one line diff --git a/install.sh b/install.sh index 28626ca..671b71a 100755 --- a/install.sh +++ b/install.sh @@ -24,7 +24,7 @@ if [ -e /run/systemd/system ]; then # service manager is Systemd $sudo cp $run_directory/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:$run_directory:g" /etc/systemd/system/conf-sync.service - if [ "$client_type" = "server" ]; then + if [ "$client_type" = "server" ]; then # TODO could be replaced in one line: cp conf-sync-$client_type $sudo cp $run_directory/systemd-templates/conf-sync-server.timer /etc/systemd/system/conf-sync.timer else $sudo cp $run_directory/systemd-templates/conf-sync-desktop.timer /etc/systemd/system/conf-sync.timer