Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon
Commits
4773246b
Unverified
Commit
4773246b
authored
May 20, 2022
by
Luiz Costa
Committed by
GitHub
May 20, 2022
Browse files
Fix permissions (#11146)
Co-authored-by:
Luiz Costa
<
me@luizgustavo.pro.br
>
parent
6545958b
Changes
4
Hide whitespace changes
Inline
Side-by-side
ci/debian/centreon-common.postinst
View file @
4773246b
...
...
@@ -5,9 +5,7 @@ if [ "$1" = "configure" ] ; then
# User will have a shell. Not secure but require refactoring otherwise.
adduser
--system
--group
--shell
/bin/bash
--home
/var/lib/centreon centreon
fi
if
[
"
$(
getent passwd www-data
)
"
]
;
then
usermod
-a
-G
centreon www-data
fi
chown
-vR
centreon:centreon
\
/etc/centreon
\
/var/cache/centreon
...
...
ci/debian/centreon-poller-centreon-engine.postinst
View file @
4773246b
...
...
@@ -34,5 +34,17 @@ view centreon included .1.3.6.1" \
access notConfigGroup
\"\"
any noauth exact centreon none none"
\
/etc/snmp/snmpd.conf
fi
# Fix centreon configuration permissions
chmod
-v
0775 /etc/centreon
chmod
-v
0664
\
/etc/centreon/centreon.conf.php
\
/etc/centreon/centreontrapd.pm
\
/etc/centreon/config.yaml
\
/etc/centreon/conf.pm
chown
-v
centreon:centreon
\
/etc/centreon/centreontrapd.pm
\
/etc/centreon/conf.pm
fi
exit
0
ci/debian/centreon-web-apache.postinst
View file @
4773246b
...
...
@@ -15,6 +15,11 @@ if [ "$1" = "configure" ] ; then
systemctl restart apache2 php8.0-fpm
fi
if
[
"
$(
getent passwd www-data
)
"
]
;
then
usermod
-a
-G
centreon www-data
usermod
-a
-G
www-data centreon
fi
fi
exit
0
ci/debian/centreon-web.postinst
View file @
4773246b
...
...
@@ -2,10 +2,6 @@
if
[
"
$1
"
=
"configure"
]
;
then
if
[
"
$(
getent passwd www-data
)
"
]
;
then
usermod
-a
-G
www-data centreon
fi
if
[
"
$(
getent passwd centreon
)
"
]
;
then
chown
-R
centreon:centreon /usr/share/centreon
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment