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:
parent
e141375795
commit
162ed9ba0a
4 changed files with 12 additions and 6 deletions
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
#=================================================
|
||||
|
|
|
@ -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"
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue