mirror of
https://git.bwaaa.monster/omnisearch
synced 2026-03-25 17:19:02 +02:00
fix: Makefile erroring out on copying config
This commit is contained in:
10
Makefile
10
Makefile
@@ -72,7 +72,7 @@ install-systemd: $(TARGET)
|
|||||||
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
||||||
@cp -rf templates/* $(DATA_DIR)/templates/
|
@cp -rf templates/* $(DATA_DIR)/templates/
|
||||||
@cp -rf static/* $(DATA_DIR)/static/
|
@cp -rf static/* $(DATA_DIR)/static/
|
||||||
@cp -n example-config.ini $(DATA_DIR)/config.ini
|
@cp -n example-config.ini $(DATA_DIR)/config.ini || true
|
||||||
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
||||||
@echo "Setting up user '$(USER)'..."
|
@echo "Setting up user '$(USER)'..."
|
||||||
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
||||||
@@ -90,7 +90,7 @@ install-openrc: $(TARGET)
|
|||||||
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
||||||
@cp -rf templates/* $(DATA_DIR)/templates/
|
@cp -rf templates/* $(DATA_DIR)/templates/
|
||||||
@cp -rf static/* $(DATA_DIR)/static/
|
@cp -rf static/* $(DATA_DIR)/static/
|
||||||
@cp -n example-config.ini $(DATA_DIR)/config.ini
|
@cp -n example-config.ini $(DATA_DIR)/config.ini || true
|
||||||
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
||||||
@echo "Setting up user '$(USER)'..."
|
@echo "Setting up user '$(USER)'..."
|
||||||
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
||||||
@@ -108,7 +108,7 @@ install-runit: $(TARGET)
|
|||||||
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
||||||
@cp -rf templates/* $(DATA_DIR)/templates/
|
@cp -rf templates/* $(DATA_DIR)/templates/
|
||||||
@cp -rf static/* $(DATA_DIR)/static/
|
@cp -rf static/* $(DATA_DIR)/static/
|
||||||
@cp -n example-config.ini $(DATA_DIR)/config.ini
|
@cp -n example-config.ini $(DATA_DIR)/config.ini || true
|
||||||
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
||||||
@echo "Setting up user '$(USER)'..."
|
@echo "Setting up user '$(USER)'..."
|
||||||
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
||||||
@@ -129,7 +129,7 @@ install-s6: $(TARGET)
|
|||||||
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
||||||
@cp -rf templates/* $(DATA_DIR)/templates/
|
@cp -rf templates/* $(DATA_DIR)/templates/
|
||||||
@cp -rf static/* $(DATA_DIR)/static/
|
@cp -rf static/* $(DATA_DIR)/static/
|
||||||
@cp -n example-config.ini $(DATA_DIR)/config.ini
|
@cp -n example-config.ini $(DATA_DIR)/config.ini || true
|
||||||
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
||||||
@echo "Setting up user '$(USER)'..."
|
@echo "Setting up user '$(USER)'..."
|
||||||
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
||||||
@@ -150,7 +150,7 @@ install-dinit: $(TARGET)
|
|||||||
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
@mkdir -p $(DATA_DIR)/templates $(DATA_DIR)/static $(LOG_DIR) $(CACHE_DIR)
|
||||||
@cp -rf templates/* $(DATA_DIR)/templates/
|
@cp -rf templates/* $(DATA_DIR)/templates/
|
||||||
@cp -rf static/* $(DATA_DIR)/static/
|
@cp -rf static/* $(DATA_DIR)/static/
|
||||||
@cp -n example-config.ini $(DATA_DIR)/config.ini
|
@cp -n example-config.ini $(DATA_DIR)/config.ini || true
|
||||||
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
install -m 755 $(TARGET) $(INSTALL_BIN_DIR)/omnisearch
|
||||||
@echo "Setting up user '$(USER)'..."
|
@echo "Setting up user '$(USER)'..."
|
||||||
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
@(grep -q '^$(GROUP):' /etc/group || groupadd $(GROUP)) 2>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user