1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/airsonic_ynh.git synced 2024-09-03 18:06:14 +02:00

Handle legacy data app folder renaming

This commit is contained in:
Alexandre Aubin 2021-08-09 19:05:39 +02:00 committed by GitHub
parent e5a0e5161a
commit 2a41eeb0cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,6 +111,13 @@ ynh_system_user_create --username=$app
# CREATE DIRECTORIES
#=================================================
# Rename legacy folder to proper location
if [[ ! -e /home/yunohost.app/$app ]] && [[ -e /home/yunohost.$app ]]
then
mkdir -p /home/yunohost.app/
mv /home/yunohost.$app /home/yunohost.app/$app
fi
mkdir -p /home/yunohost.app/$app/{Podcasts,Playlists}
#=================================================