Skip to content
Snippets Groups Projects
Commit 983ec664 authored by Daniel Baumann's avatar Daniel Baumann Committed by P. Christeas
Browse files

Using dedicated storage directory in /var/lib/openerp-server, that way the...

Using dedicated storage directory in /var/lib/openerp-server, that way the addons directory can stay read-only for the unprivileged user.

bzr revid: p_christ@hol.gr-20090824180208-khj2awfbic41w324
parent c35569ea
Branches
Tags
No related merge requests found
/usr/share/man/man5/openerp_serverrc.5.gz /usr/share/man/man5/openerp-server.conf.5.gz
/var/lib/openerp-server/filestore /usr/lib/openerp-server/filestore
......@@ -30,11 +30,13 @@ case "${1}" in
chown ${_USERNAME}:adm ${LOGFILE}
chmod 0640 ${LOGFILE}
# Setting ownership and permissions
chown ${_USERNAME} /usr/lib/openerp-server/addons -R
# Creating local storage directory
mkdir -p /var/lib/openerp-server/filestore
# Setting ownership and permissions
chmod 0640 ${CONFFILE}
chown ${_USERNAME}:${_USERNAME} ${CONFFILE}
chown ${_USERNAME}:${_USERNAME} /var/lib/openerp-server -R
echo
echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment