From e11729523284ab764dab11463d8e601518ff209d Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Sat, 8 May 2021 12:55:07 -0400 Subject: [PATCH] Use multimedia helpers from core --- manifest.json | 2 +- scripts/_common.sh | 35 ----------------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/manifest.json b/manifest.json index c9839cf..c7afe4a 100644 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,7 @@ "email": "jules.berthlet@quoi.xyz" }, "requirements": { - "yunohost": ">= 4.1.3" + "yunohost": ">= 4.2.4" }, "multi_instance": false, "services": [ diff --git a/scripts/_common.sh b/scripts/_common.sh index 7bf5164..935990f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -128,38 +128,3 @@ function set_up_logrotate { #================================================= # FUTURE OFFICIAL HELPERS #================================================= - -# Install or update the main directory yunohost.multimedia -# -# usage: ynh_multimedia_build_main_dir -ynh_multimedia_build_main_dir () { - local ynh_media_release="v1.2" - local checksum="806a827ba1902d6911095602a9221181" - - # Download yunohost.multimedia scripts - wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/${ynh_media_release}.tar.gz 2>&1 - - # 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 - - # Extract - mkdir yunohost.multimedia-master - tar -xf ${ynh_media_release}.tar.gz -C yunohost.multimedia-master --strip-components 1 - ./yunohost.multimedia-master/script/ynh_media_build.sh -} - -# Grant write access to multimedia directories to a specified user -# -# usage: ynh_multimedia_addaccess user_name -# -# | arg: user_name - User to be granted write access -ynh_multimedia_addaccess () { - local user_name=$1 - groupadd -f multimedia - usermod -a -G multimedia $user_name -}