aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-04-07 10:05:31 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-04-07 10:05:31 +0200
commit24d40fa1fc2442efa52bde8fd23e37bfddebb9a8 (patch)
treec5fb31be2f66b78d0a675835712af5f4edaecdcb
parentec3f6b176c5bce1a2c1b690563b70897c48c62e5 (diff)
only install config if it does not exist
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
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