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

@ -27,15 +27,15 @@ ynh_multimedia_build_main_dir () {
local checksum="806a827ba1902d6911095602a9221181" local checksum="806a827ba1902d6911095602a9221181"
# Download yunohost.multimedia scripts # 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 # Check the control sum
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
@ -70,4 +70,4 @@ ynh_multimedia_addaccess () {
local user_name=$1 local user_name=$1
groupadd -f multimedia groupadd -f multimedia
usermod -a -G multimedia $user_name usermod -a -G multimedia $user_name
} }

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"
#================================================= #=================================================