aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-02 02:47:05 +0000
committerDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-04 01:24:15 +0000
commit89d0e395460fe5c0501d95c1223a866a53bdff6b (patch)
tree97d3a933b963b29b350b339675eb5b0fdf951c98 /debian
parentf7f89a2ece36fd4a9d7b0a69e563832fff318035 (diff)
downloadboca-89d0e395460fe5c0501d95c1223a866a53bdff6b.tar.gz
boca-89d0e395460fe5c0501d95c1223a866a53bdff6b.zip
Fix chown usage in maintainer scripts
The maintainer scripts used by boca-common and boca-web used points to separate the user from its group, which is discouraged. The point has been replaced with a colon as recommended by chown's manpage. This fixes the Lintian warnings: * boca-common: maintainer-script-calls-chown-improperly "chown www-data.www-data" [postinst:51] * boca-web: maintainer-script-calls-chown-improperly "chown -R www-data.www-data" [postinst:5]
Diffstat (limited to 'debian')
-rw-r--r--debian/boca-common.postinst2
-rw-r--r--debian/boca-web.postinst2
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/boca-common.postinst b/debian/boca-common.postinst
index 0a35a35..2d47988 100644
--- a/debian/boca-common.postinst
+++ b/debian/boca-common.postinst
@@ -48,6 +48,6 @@ case "$1" in
esac
chmod 600 /var/www/boca/src/private/conf.php
-chown www-data.www-data /var/www/boca/src/private/conf.php
+chown www-data:www-data /var/www/boca/src/private/conf.php
exit 0
diff --git a/debian/boca-web.postinst b/debian/boca-web.postinst
index 2006bff..ca537f5 100644
--- a/debian/boca-web.postinst
+++ b/debian/boca-web.postinst
@@ -2,7 +2,7 @@
. /usr/share/debconf/confmodule
-chown -R www-data.www-data /var/www/boca
+chown -R www-data:www-data /var/www/boca
chmod -R go-rwx /var/www/boca/src/private
a2enmod socache_shmcb