Fix multimedia hook if not media directory yet

This commit is contained in:
Alexandre Aubin 2021-02-22 23:42:52 +01:00
parent 1adff77e3a
commit 29b511f5e3

View file

@ -6,7 +6,7 @@ readonly MEDIA_GROUP=multimedia
readonly MEDIA_DIRECTORY=/home/yunohost.multimedia
# We only do this if multimedia directory is enabled (= the folder exists)
[ -e "$MEDIA_DIRECTORY" ] || exit
[ -e "$MEDIA_DIRECTORY" ] || exit 0
mkdir -p "$MEDIA_DIRECTORY/$user"
mkdir -p "$MEDIA_DIRECTORY/$user/Music"