mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ynh_multimedia: local can only be used in a function
This commit is contained in:
parent
ac30833e65
commit
a2d28b21de
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ mkdir -p "$MEDIA_DIRECTORY/$user/eBook"
|
||||||
ln -sfn "$MEDIA_DIRECTORY/share" "$MEDIA_DIRECTORY/$user/Share"
|
ln -sfn "$MEDIA_DIRECTORY/share" "$MEDIA_DIRECTORY/$user/Share"
|
||||||
# Création du lien symbolique dans le home de l'utilisateur.
|
# Création du lien symbolique dans le home de l'utilisateur.
|
||||||
#link will only be created if the home directory of the user exists and if it's located in '/home' folder
|
#link will only be created if the home directory of the user exists and if it's located in '/home' folder
|
||||||
local user_home="$(getent passwd $user | cut -d: -f6 | grep '^/home/')"
|
user_home="$(getent passwd $user | cut -d: -f6 | grep '^/home/')"
|
||||||
if [[ -d "$user_home" ]]; then
|
if [[ -d "$user_home" ]]; then
|
||||||
ln -sfn "$MEDIA_DIRECTORY/$user" "$user_home/Multimedia"
|
ln -sfn "$MEDIA_DIRECTORY/$user" "$user_home/Multimedia"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue