1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ampache_ynh.git synced 2024-09-03 18:15:55 +02:00

Merge pull request #72 from YunoHost-Apps/4.3.0

Upgrade to version 4.3.0
This commit is contained in:
Éric Gaspar 2021-02-14 22:55:30 +01:00 committed by GitHub
commit a95e97bd12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 23 deletions

View file

@ -9,7 +9,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to
## Overview
[Ampache](http://ampache.org) for the love of music. A web based audio/video streaming application and file manager allowing you to access your music & videos from anywhere, using almost any internet enabled device.
**Shipped version:** 4.2.6
**Shipped version:** 4.3.0
## Screenshots

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/ampache/ampache/archive/4.2.6.tar.gz
SOURCE_SUM=7cba92f9e59b2c8c81ddfa3d82ca77761d3b0d3c55c6372db01410e5c22ddb46
SOURCE_URL=https://github.com/ampache/ampache/archive/4.3.0.tar.gz
SOURCE_SUM=0fc07590e62e5223d305842b175eb83a099ba138e933428b1edec85a0f464370
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Web based audio/video streaming application",
"fr": "Application de streaming audio et vidéo"
},
"version": "4.2.6~ynh1",
"version": "4.3.0~ynh1",
"url": "http://ampache.org",
"license": "AGPL-3.0",
"maintainer": {
@ -14,7 +14,7 @@
"email": "aymhce@gmail.com"
},
"requirements": {
"yunohost": ">= 3.8.1"
"yunohost": ">= 4.0.0"
},
"multi_instance": true,
"services" : [

View file

@ -13,6 +13,4 @@
## Package_check results
---
*If you have access to [App Continuous Integration for packagers](https://yunohost.org/#/packaging_apps_ci) you can provide a link to the package_check results like below, replacing '-NUM-' in this link by the PR number and USERNAME by your username on the ci-apps-dev. Or you provide a screenshot or a pastebin of the results*
[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/ampache_ynh%20PR-NUM-%20(USERNAME)/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/ampache_ynh%20PR-NUM-%20(USERNAME)/)
* An automatic package_check will be launch at https://ci-apps-dev.yunohost.org/, when you add a specific comment to your Pull Request: "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!"*

View file

@ -151,11 +151,9 @@ ynh_multimedia_build_main_dir
ynh_script_progression --message="Configuring Ampache..." --weight=5
# Set the app as temporarily public for curl call
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/"
# Reload SSOwat config
yunohost app ssowatconf
ynh_permission_update --permission="main" --add="visitors"
# Reload Nginx
# Reload NGINX
ynh_systemd_action --service_name=nginx --action=reload
ynh_local_curl /update.php?action=update
@ -186,12 +184,11 @@ chown -R $app: $final_path
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..."
ynh_script_progression --message="Configuring permissions..."
# Keep app public if necessary
if [ $is_public -eq 0 ]
then
ynh_app_setting_delete --app=$app --key=unprotected_uris
ynh_permission_update --permission="main" --remove="visitors"
fi
#=================================================

View file

@ -71,7 +71,12 @@ if [ -z "$secret_key" ]; then
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
fi
ynh_app_setting_delete --app=$app --key=skipped_uris
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all
ynh_app_setting_delete --app=$app --key=is_public
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
@ -180,11 +185,9 @@ then
ynh_script_progression --message="Upgrading Ampache with cURL..." --weight=6
# Set the app as temporarily public for curl call
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/"
# Reload SSOwat config
yunohost app ssowatconf
ynh_permission_update --permission="main" --add="visitors"
# Reload Nginx
# Reload NGINX
ynh_systemd_action --service_name=nginx --action=reload
ynh_local_curl /update.php?action=update
@ -204,12 +207,11 @@ chown -R $app: $final_path
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Upgrading SSOwat configuration..."
ynh_script_progression --message="Configuring permissions..."
# Make app public if necessary
if [ $is_public -eq 0 ]
then
ynh_app_setting_delete --app=$app --key=unprotected_uris
ynh_permission_update --permission="main" --remove="visitors"
fi
#=================================================