From 24d40fa1fc2442efa52bde8fd23e37bfddebb9a8 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 7 Apr 2023 10:05:31 +0200 Subject: only install config if it does not exist --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 652c14d..50d1e80 100755 --- a/install +++ b/install @@ -1,7 +1,7 @@ #!/bin/sh install spawnctl /usr/local/bin/ -install spawnctl.conf /etc/spawnctl.conf +[ ! -e "/etc/spawnctl.conf" ] && install spawnctl.conf /etc/spawnctl.conf install spawnctl-port-forward.service /etc/systemd/system/ chmod +x /usr/local/bin/spawnctl -- cgit v1.2.3-70-g09d2