Просмотр исходного кода

fix: correct package name casing and update .env file path in installation rules

Manuel 3 месяцев назад
Родитель
Сommit
aff79c35ea
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      debian/rules

+ 3 - 3
debian/rules

@@ -3,7 +3,7 @@
 # Uncomment to enable verbose debhelper output
 #export DH_VERBOSE = 1
 
-PACKAGE    = squidstats
+PACKAGE    = SquidStats
 DESTDIR    = $(CURDIR)/debian/$(PACKAGE)
 INSTALL_ROOT = /opt/SquidStats
 OPT_DIR    = $(DESTDIR)$(INSTALL_ROOT)
@@ -40,7 +40,7 @@ override_dh_auto_install:
 	cp -r utils/     $(APP_DEST)/
 
 	# ── Configuration template ───────────────────────────────────────────
-	install -m 0640 example.env $(DESTDIR)/etc/$(PACKAGE)/squidstats.env
+	install -m 0640 example.env $(DESTDIR)/opt/$(PACKAGE)/app/.env
 
 override_dh_auto_test:
 	@echo "Tests are run in a separate CI stage; skipping here."
@@ -52,4 +52,4 @@ override_dh_strip:
 override_dh_fixperms:
 	dh_fixperms
 	# Config file must not be world-readable (may contain secrets)
-	chmod 0640 $(DESTDIR)/etc/$(PACKAGE)/squidstats.env 2>/dev/null || true
+	chmod 0640 $(DESTDIR)/opt/$(PACKAGE)/app/.env 2>/dev/null || true