Fix RPM package installation

Summary: `chattr` must be after `chown`.

Reviewers: buda

Reviewed By: buda

Differential Revision: https://phabricator.memgraph.io/D2752
This commit is contained in:
Matej Ferencevic 2020-04-03 18:47:09 +02:00
parent 24eb021840
commit 1d5952bb9c
2 changed files with 10 additions and 4 deletions

View File

@ -76,13 +76,16 @@ for i in /usr/share/memgraph/examples/*; do
if [ ! -d $i/telemetry ]; then
mkdir $i/telemetry || exit 1
fi
# 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
# Make snapshots directory immutable (optional)
for i in /usr/share/memgraph/examples/*; do
chattr +i -R $i/snapshots || true
done
# Generate SSL certificates
if [ ! -d /etc/memgraph/ssl ]; then
mkdir /etc/memgraph/ssl || exit 1

View File

@ -76,13 +76,16 @@ for i in /usr/share/memgraph/examples/*; do
if [ ! -d $i/telemetry ]; then
mkdir $i/telemetry || exit 1
fi
# 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
# Make snapshots directory immutable (optional)
for i in /usr/share/memgraph/examples/*; do
chattr +i -R $i/snapshots || true
done
# Generate SSL certificates
if [ ! -d /etc/memgraph/ssl ]; then
mkdir /etc/memgraph/ssl || exit 1