Snap: store media in the proper directory #695
2 changed files with 3 additions and 0 deletions
2
snap/hooks/configure
vendored
2
snap/hooks/configure
vendored
|
|
@ -45,4 +45,6 @@ then
|
|||
touch ${SNAP_COMMON}/initial-migrations-run
|
||||
fi
|
||||
|
||||
mdkir "${SNAP_DATA}/media"
|
||||
|
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ ROCKET_ADDRESS="$(snapctl get listen.address)"
|
|||
ROCKET_PORT="$(snapctl get listen.port)"
|
||||
export ROCKET_SECRET_KEY="$(cat ${SNAP_COMMON}/rocket-secret-key)"
|
||||
export SEARCH_INDEX="${SNAP_DATA}/search_index"
|
||||
export MEDIA_UPLOAD_DIRECTORY="${SNAP_DATA}/media"
|
||||
|
||||
cd ${SNAP}
|
||||
exec $@
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue
The
configurehook gets run each time the snap is upgraded; the name might be a bit misleading. This would fail the first time the snap is upgraded, asmkdirwill fail to create an existing directory.It's also slightly misspelled 😉