diff --git a/manifest.json b/manifest.json index a7b94f6..03d442e 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Stream and manage your music collection", "fr": "Streamez et gérez votre collection de musique" }, - "version": "10.6.2~ynh1", + "version": "10.6.2~ynh2", "url": "http://airsonic.github.io", "license": "GPL-3.0-or-later", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 4a86d89..c019450 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -27,15 +27,15 @@ ynh_multimedia_build_main_dir () { local checksum="806a827ba1902d6911095602a9221181" # Download yunohost.multimedia scripts - wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/${ynh_media_release}.tar.gz + wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/${ynh_media_release}.tar.gz # Check the control sum echo "${checksum} ${ynh_media_release}.tar.gz" | md5sum -c --status \ || ynh_die "Corrupt source" - # Check if the package acl is installed. Or install it. - ynh_package_is_installed 'acl' \ - || ynh_package_install acl + # Check if the package acl is installed. Or install it. + ynh_package_is_installed 'acl' \ + || ynh_package_install acl # Extract mkdir yunohost.multimedia-master @@ -70,4 +70,4 @@ ynh_multimedia_addaccess () { local user_name=$1 groupadd -f multimedia usermod -a -G multimedia $user_name -} \ No newline at end of file +} diff --git a/scripts/install b/scripts/install index c5fef64..af47ef7 100644 --- a/scripts/install +++ b/scripts/install @@ -120,6 +120,9 @@ ynh_multimedia_addfolder --source_dir="/home/yunohost.airsonic/Playlists" --dest # Allow airsonic to write into these directories ynh_multimedia_addaccess $app +# Allow Airsonic to write into these directories +ynh_multimedia_addaccess $app + #================================================= # ENABLE "TRANSCODE" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a01bf84..3ee71ec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -149,6 +149,9 @@ if ! grep -q "PlaylistFolder" $final_path/airsonic.properties; then echo "PlaylistFolder=/home/yunohost.multimedia/share/Playlists" >> $final_path/airsonic.properties fi +# Allow Airsonic to write into these directories +ynh_multimedia_addaccess $app + #================================================= # ENABLE "TRANSCODE" #=================================================