1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/BicBucStriim_ynh.git synced 2024-09-03 18:15:53 +02:00
* Upgrade to 4.3
This commit is contained in:
Éric Gaspar 2021-11-29 14:31:35 +01:00 committed by GitHub
parent 414fd11f4d
commit 44ae493dcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 50 additions and 37 deletions

View file

@ -15,11 +15,12 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
## Overview
Digital books streamer, providing web-based access to your e-book collection.
BicBucStriim streams books, digital books. It was primarily designed to fill a gap in the functionality of NAS devices that provide access to music, videos and photos -- but not books. BicBucStriim fills this gap and provides web-based access to your e-book collection.
BicBucStriim is a simple PHP application that runs in the Apache/PHP environment provided by the NAS (or any other server). It assumes that you manage your e-book collection with Calibre. The application reads the [Calibre](https://calibre-ebook.com/) data and publishes it in HTML form. To access the e-book catalog you simply point your ebook reader to your NAS, select one of your e-books and download it.
**Shipped version:** 1.5.3~ynh2
**Shipped version:** 1.5.3~ynh1
**Demo:** https://demo.example.com
## Screenshots
@ -27,8 +28,6 @@ Digital books streamer, providing web-based access to your e-book collection.
## Disclaimers / important information
BicBucStriim is a simple PHP application that runs in the Apache/PHP environment provided by the NAS (or any other server). It assumes that you manage your e-book collection with Calibre. The application reads the [Calibre](https://calibre-ebook.com/) data and publishes it in HTML form. To access the e-book catalog you simply point your ebook reader to your NAS, select one of your e-books and download it.
## Configuration
A freshly installed BicBucStriim installation will show the login page. The initial login information for the administrator is
@ -42,8 +41,6 @@ If you encounter problems, use the installation test to check your environment.
## Documentation and resources
* Official app website: http://projekte.textmulch.de/bicbucstriim/
* Official user documentation: https://yunohost.org/apps
* Official admin documentation: https://yunohost.org/packaging_apps
* Upstream app code repository: https://github.com/rvolz/BicBucStriim
* YunoHost documentation for this app: https://yunohost.org/app_bicbucstriim
* Report a bug: https://github.com/YunoHost-Apps/bicbucstriim_ynh/issues

View file

@ -11,11 +11,12 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
## Vue d'ensemble
Interface web pour accéder à votre collection d'e-book.
BicBucStriim streams books, digital books. It was primarily designed to fill a gap in the functionality of NAS devices that provide access to music, videos and photos -- but not books. BicBucStriim fills this gap and provides web-based access to your e-book collection.
BicBucStriim is a simple PHP application that runs in the Apache/PHP environment provided by the NAS (or any other server). It assumes that you manage your e-book collection with Calibre. The application reads the [Calibre](https://calibre-ebook.com/) data and publishes it in HTML form. To access the e-book catalog you simply point your ebook reader to your NAS, select one of your e-books and download it.
**Version incluse :** 1.5.3~ynh2
**Version incluse :** 1.5.3~ynh1
**Démo :** https://demo.example.com
## Captures d'écran
@ -34,8 +35,6 @@ Une installation de BicBucStriim fraîchement installée affichera la page de co
## Documentations et ressources
* Site officiel de l'app : http://projekte.textmulch.de/bicbucstriim/
* Documentation officielle utilisateur : https://yunohost.org/apps
* Documentation officielle de l'admin : https://yunohost.org/packaging_apps
* Dépôt de code officiel de l'app : https://github.com/rvolz/BicBucStriim
* Documentation YunoHost pour cette app : https://yunohost.org/app_bicbucstriim
* Signaler un bug : https://github.com/YunoHost-Apps/bicbucstriim_ynh/issues

View file

@ -4,11 +4,6 @@ location __PATH__/ {
# Path to source
alias __FINALPATH__/ ;
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
rewrite ^/(__PATH__/img/.*)$ /$1 break;
rewrite ^/(__PATH__/js/.*)$ /$1 break;
rewrite ^/(__PATH__/style/.*)$ /$1 break;

2
doc/DESCRIPTION.md Normal file
View file

@ -0,0 +1,2 @@
BicBucStriim streams books, digital books. It was primarily designed to fill a gap in the functionality of NAS devices that provide access to music, videos and photos -- but not books. BicBucStriim fills this gap and provides web-based access to your e-book collection.
BicBucStriim is a simple PHP application that runs in the Apache/PHP environment provided by the NAS (or any other server). It assumes that you manage your e-book collection with Calibre. The application reads the [Calibre](https://calibre-ebook.com/) data and publishes it in HTML form. To access the e-book catalog you simply point your ebook reader to your NAS, select one of your e-books and download it.

View file

@ -1,5 +1,3 @@
BicBucStriim is a simple PHP application that runs in the Apache/PHP environment provided by the NAS (or any other server). It assumes that you manage your e-book collection with Calibre. The application reads the [Calibre](https://calibre-ebook.com/) data and publishes it in HTML form. To access the e-book catalog you simply point your ebook reader to your NAS, select one of your e-books and download it.
## Configuration
A freshly installed BicBucStriim installation will show the login page. The initial login information for the administrator is

View file

@ -3,17 +3,14 @@
"id": "bicbucstriim",
"packaging_format": 1,
"description": {
"en": "Digital books streamer, providing web-based access to your e-book collection.",
"fr": "Interface web pour accéder à votre collection d'e-book."
"en": "Digital books streamer, providing web-based access to your e-book collection",
"fr": "Interface web pour accéder à votre collection d'e-book"
},
"version": "1.5.3~ynh1",
"version": "1.5.3~ynh2",
"url": "http://projekte.textmulch.de/bicbucstriim/",
"upstream": {
"license": "MIT",
"website": "http://projekte.textmulch.de/bicbucstriim/",
"demo": "https://demo.example.com",
"admindoc": "https://yunohost.org/packaging_apps",
"userdoc": "https://yunohost.org/apps",
"code": "https://github.com/rvolz/BicBucStriim"
},
"license": "MIT",
@ -22,7 +19,7 @@
"email": "apulido@free.fr"
},
"requirements": {
"yunohost": ">> 4.2.4"
"yunohost": ">> 4.3.0"
},
"multi_instance": true,
"services": [
@ -33,8 +30,7 @@
"install" : [
{
"name": "domain",
"type": "domain",
"example": "example.com"
"type": "domain"
},
{
"name": "path",

View file

@ -6,7 +6,7 @@
YNH_PHP_VERSION="7.3"
extra_php_dependencies="php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-sqlite3 php${YNH_PHP_VERSION}-mbstring"
pkg_dependencies="php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-sqlite3 php${YNH_PHP_VERSION}-mbstring"
#php${YNH_PHP_VERSION}-mcrypt
#=================================================

View file

@ -26,6 +26,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
phpversion=$YNH_PHP_VERSION
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
@ -45,6 +46,14 @@ ynh_script_progression --message="Storing installation settings..." --weight=1
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# CREATE DEDICATED USER
@ -82,8 +91,7 @@ ynh_add_nginx_config
ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --package="$extra_php_dependencies"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
ynh_add_fpm_config
#=================================================
# SETUP SSOWAT

View file

@ -19,6 +19,14 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing dependencies..." --weight=1
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
#=================================================
# REMOVE APP MAIN DIR
#=================================================

View file

@ -33,10 +33,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=2
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
#=================================================
# STANDARD RESTORATION STEPS
@ -73,7 +70,13 @@ ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=50
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_add_fpm_config --package="$extra_php_dependencies"
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# GENERIC FINALIZATION

View file

@ -94,13 +94,20 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_script_progression --message="Upgrading dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --package="$extra_php_dependencies"
ynh_add_fpm_config
#=================================================
# GENERIC FINALIZATION