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

Fix multimedia (#35)

* fix typos

* [enh] give write access to multimedia folder

So music can be uploaded from web ui

* bump version in manifest
This commit is contained in:
Gofannon 2020-08-25 12:53:26 +02:00 committed by GitHub
parent e141375795
commit 162ed9ba0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 6 deletions

View file

@ -6,7 +6,7 @@
"en": "Stream and manage your music collection", "en": "Stream and manage your music collection",
"fr": "Streamez et gérez votre collection de musique" "fr": "Streamez et gérez votre collection de musique"
}, },
"version": "10.6.2~ynh1", "version": "10.6.2~ynh2",
"url": "http://airsonic.github.io", "url": "http://airsonic.github.io",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"maintainer": { "maintainer": {

View file

@ -33,9 +33,9 @@ ynh_multimedia_build_main_dir () {
echo "${checksum} ${ynh_media_release}.tar.gz" | md5sum -c --status \ echo "${checksum} ${ynh_media_release}.tar.gz" | md5sum -c --status \
|| ynh_die "Corrupt source" || ynh_die "Corrupt source"
# Check if the package acl is installed. Or install it. # Check if the package acl is installed. Or install it.
ynh_package_is_installed 'acl' \ ynh_package_is_installed 'acl' \
|| ynh_package_install acl || ynh_package_install acl
# Extract # Extract
mkdir yunohost.multimedia-master mkdir yunohost.multimedia-master

View file

@ -120,6 +120,9 @@ ynh_multimedia_addfolder --source_dir="/home/yunohost.airsonic/Playlists" --dest
# Allow airsonic to write into these directories # Allow airsonic to write into these directories
ynh_multimedia_addaccess $app ynh_multimedia_addaccess $app
# Allow Airsonic to write into these directories
ynh_multimedia_addaccess $app
#================================================= #=================================================
# ENABLE "TRANSCODE" # ENABLE "TRANSCODE"
#================================================= #=================================================

View file

@ -149,6 +149,9 @@ if ! grep -q "PlaylistFolder" $final_path/airsonic.properties; then
echo "PlaylistFolder=/home/yunohost.multimedia/share/Playlists" >> $final_path/airsonic.properties echo "PlaylistFolder=/home/yunohost.multimedia/share/Playlists" >> $final_path/airsonic.properties
fi fi
# Allow Airsonic to write into these directories
ynh_multimedia_addaccess $app
#================================================= #=================================================
# ENABLE "TRANSCODE" # ENABLE "TRANSCODE"
#================================================= #=================================================