Fix Debian package installation

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

Reviewers: buda

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2748
This commit is contained in:
Matej Ferencevic 2020-04-02 17:57:40 +02:00
parent 66e644551f
commit 974ce1e9e9

View File

@ -34,13 +34,16 @@ case "$1" in
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