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",
|
"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": {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue