Skip to content

Commit cd65ea2

Browse files
committed
Update file permissions in deb postinst
1 parent dea4c80 commit cd65ea2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/postinstall.sh

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ if [ "$1" = "configure" ]; then
1515
--comment "pg2s3 database backups" \
1616
pg2s3
1717
fi
18+
19+
# Update config file permissions
20+
chown root:pg2s3 /etc/pg2s3.conf
21+
chmod 0640 /etc/pg2s3.conf
1822
fi
1923

2024
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then

0 commit comments

Comments
 (0)