From b8663b4c9f4ae2fe5b09fcca1fc011376c56422e Mon Sep 17 00:00:00 2001 From: frosty Date: Tue, 17 Mar 2026 14:03:52 -0400 Subject: [PATCH] fix: update Makefile to overwrite templates/static and not overwrite config --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e6316f0..8dbc2d8 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,7 @@ install-systemd: $(TARGET) @mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR) @cp -rf templates/* $(DATA_DIR)/templates/ @cp -rf static/* $(DATA_DIR)/static/ - @cp example-config.ini $(DATA_DIR)/config.ini + @cp -n example-config.ini $(DATA_DIR)/config.ini install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch @echo "Setting up user '$(USER)'..." @(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true @@ -88,7 +88,7 @@ install-openrc: $(TARGET) @mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR) @cp -rf templates/* $(DATA_DIR)/templates/ @cp -rf static/* $(DATA_DIR)/static/ - @cp example-config.ini $(DATA_DIR)/config.ini + @cp -n example-config.ini $(DATA_DIR)/config.ini install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch @echo "Setting up user '$(USER)'..." @(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true @@ -106,7 +106,7 @@ install-runit: $(TARGET) @mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR) @cp -rf templates/* $(DATA_DIR)/templates/ @cp -rf static/* $(DATA_DIR)/static/ - @cp example-config.ini $(DATA_DIR)/config.ini + @cp -n example-config.ini $(DATA_DIR)/config.ini install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch @echo "Setting up user '$(USER)'..." @(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true @@ -127,7 +127,7 @@ install-s6: $(TARGET) @mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR) @cp -rf templates/* $(DATA_DIR)/templates/ @cp -rf static/* $(DATA_DIR)/static/ - @cp example-config.ini $(DATA_DIR)/config.ini + @cp -n example-config.ini $(DATA_DIR)/config.ini install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch @echo "Setting up user '$(USER)'..." @(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true