mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-22 12:26:37 +00:00
fix(package): declare /etc/default/rustfs as a deb conffile (#6220)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -290,6 +290,12 @@ jobs:
|
|||||||
Homepage: https://rustfs.com
|
Homepage: https://rustfs.com
|
||||||
EOF
|
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'
|
cat > "${PKG_DIR}/DEBIAN/postinst" << 'POSTINST'
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
Reference in New Issue
Block a user