Fix ownership of examples in packages

Reviewers: teon.banek, ipaljak

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2721
This commit is contained in:
Matej Ferencevic 2020-03-13 13:35:08 +01:00
parent f48ad62647
commit f1327c52ef
3 changed files with 9 additions and 3 deletions
release
debian
rpm

View File

@ -34,11 +34,13 @@ case "$1" in
if [ ! -d $i/telemetry ]; then
mkdir $i/telemetry || exit 1
fi
chown -R memgraph:memgraph $i/telemetry || exit 1
# Make snapshots directory immutable (optional)
chattr +i -R $i/snapshots || true
done
# Change ownership of all examples
chown -R memgraph:memgraph /usr/share/memgraph/examples || exit 1
# Generate SSL certificates
if [ ! -d /etc/memgraph/ssl ]; then
mkdir /etc/memgraph/ssl || exit 1

View File

@ -76,11 +76,13 @@ for i in /usr/share/memgraph/examples/*; do
if [ ! -d $i/telemetry ]; then
mkdir $i/telemetry || exit 1
fi
chown -R memgraph:memgraph $i/telemetry || exit 1
# Make snapshots directory immutable (optional)
chattr +i -R $i/snapshots || true
done
# Change ownership of all examples
chown -R memgraph:memgraph /usr/share/memgraph/examples || exit 1
# Generate SSL certificates
if [ ! -d /etc/memgraph/ssl ]; then
mkdir /etc/memgraph/ssl || exit 1

View File

@ -76,11 +76,13 @@ for i in /usr/share/memgraph/examples/*; do
if [ ! -d $i/telemetry ]; then
mkdir $i/telemetry || exit 1
fi
chown -R memgraph:memgraph $i/telemetry || exit 1
# Make snapshots directory immutable (optional)
chattr +i -R $i/snapshots || true
done
# Change ownership of all examples
chown -R memgraph:memgraph /usr/share/memgraph/examples || exit 1
# Generate SSL certificates
if [ ! -d /etc/memgraph/ssl ]; then
mkdir /etc/memgraph/ssl || exit 1