fix(package): declare /etc/default/rustfs as a deb conffile (#6220)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
hector
2026-08-18 23:56:52 +08:00
committed by GitHub
parent 905082893f
commit c86a94a2dc
+6
View File
@@ -290,6 +290,12 @@ jobs:
Homepage: https://rustfs.com
EOF
# Declare /etc/default/rustfs as a conffile so dpkg preserves user
# modifications on upgrade instead of silently overwriting them.
cat > "${PKG_DIR}/DEBIAN/conffiles" << 'CONFFILES'
/etc/default/rustfs
CONFFILES
cat > "${PKG_DIR}/DEBIAN/postinst" << 'POSTINST'
#!/bin/bash
set -e