]> the.earth.li Git - onak.git/commit
Cleanup postinst to avoid recursive chown of database
authorJonathan McDowell <noodles@earth.li>
Thu, 22 Aug 2019 07:17:49 +0000 (08:17 +0100)
committerJonathan McDowell <noodles@earth.li>
Thu, 22 Aug 2019 07:17:49 +0000 (08:17 +0100)
commitdfab9e96ee1fa4a10acf9c1cf644d7a4366a5af6
treeef398275328c6f0629700b5991c55360725b227f
parent70842462a490e56a607a48b2d27807816c4d8a80
Cleanup postinst to avoid recursive chown of database

The recursive chown of /var/lib/onak has the potential to be abused
during installation, so just chown the top level directory and then run
the onak that's initialising the DB as the onak user, rather than root.
debian/changelog
debian/postinst