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:
parent
e5a0e5161a
commit
2a41eeb0cd
1 changed files with 7 additions and 0 deletions
|
@ -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}
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue