ensure Tor daemon files have correct permissions
authorPeter Müller <peter.mueller@ipfire.org>
Fri, 15 Mar 2019 17:00:00 +0000 (17:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 16 Mar 2019 12:32:57 +0000 (12:32 +0000)
commita10b0e5b448bf7e4a9bcc334e177ddae09806dc7
treecc0b30a9c80cce0afbbbfd8dfe830f04baf50a1d
parenta46903cce3863923838c5cc0721f4932adf2175d
ensure Tor daemon files have correct permissions

Set permissions for /var/lib/tor and /var/ipfire/tor to
tor:tor, regardless whether Tor user has been created before
or not.

This ensures Tor starts properly on existing systems after
reinstallation of the add-on. Thanks to Michael for the hint.

Further, a comment for new Tor user in /etc/passwd has been added.

Fixes #11779.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/paks/tor/install.sh