mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-11 20:21:04 +01:00
Fix up permissions of the database path
Also apply the database creation and ownership change on every installation and upgrade.
This commit is contained in:
parent
1e560529d8
commit
8cf408e966
1 changed files with 5 additions and 5 deletions
10
debian/postinst
vendored
10
debian/postinst
vendored
|
@ -19,11 +19,11 @@ case "$1" in
|
||||||
_matrix-conduit
|
_matrix-conduit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the database path if it does not exist yet.
|
# Create the database path if it does not exist yet and fix up ownership
|
||||||
if [ ! -d "$CONDUIT_DATABASE_PATH" ]; then
|
# and permissions.
|
||||||
mkdir -p "$CONDUIT_DATABASE_PATH"
|
mkdir -p "$CONDUIT_DATABASE_PATH"
|
||||||
chown _matrix-conduit "$CONDUIT_DATABASE_PATH"
|
chown _matrix-conduit "$CONDUIT_DATABASE_PATH"
|
||||||
fi
|
chmod 700 "$CONDUIT_DATABASE_PATH"
|
||||||
|
|
||||||
if [ ! -e "$CONDUIT_CONFIG_FILE" ]; then
|
if [ ! -e "$CONDUIT_CONFIG_FILE" ]; then
|
||||||
# Write the debconf values in the config.
|
# Write the debconf values in the config.
|
||||||
|
|
Loading…
Reference in a new issue