1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00

Merge pull request #36 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-09-08 22:50:43 +02:00 committed by GitHub
commit 150184bd60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 19 additions and 44 deletions

View file

@ -17,10 +17,9 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
## Overview ## Overview
YOURLS stands for Your Own URL Shortener. It is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or bitly). YOURLS stands for Your Own URL Shortener. It is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or bitly).
Running your own URL shortener is fun, geeky and useful: you own your data and don't depend on third-party services. It's also a great way to add branding to your short URLs, instead of using the same public URL shortener everyone uses. Running your own URL shortener is fun, geeky and useful: you own your data and don't depend on third-party services. It's also a great way to add branding to your short URLs, instead of using the same public URL shortener everyone uses.
### YOURLS Features ### Features
- Private (your links only) or Public (everybody can create short links, fine for an intranet) - Private (your links only) or Public (everybody can create short links, fine for an intranet)
- Dozens of plugins to easily implement new features - Dozens of plugins to easily implement new features
@ -30,7 +29,7 @@ Running your own URL shortener is fun, geeky and useful: you own your data and d
- Sample files to create your own public interface - Sample files to create your own public interface
**Shipped version:** 1.9.2~ynh2 **Shipped version:** 1.9.2~ynh3
**Demo:** https://yourls.org/cookie+ **Demo:** https://yourls.org/cookie+

View file

@ -17,10 +17,9 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
## Vue densemble ## Vue densemble
YOURLS stands for Your Own URL Shortener. It is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or bitly). YOURLS stands for Your Own URL Shortener. It is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or bitly).
Running your own URL shortener is fun, geeky and useful: you own your data and don't depend on third-party services. It's also a great way to add branding to your short URLs, instead of using the same public URL shortener everyone uses. Running your own URL shortener is fun, geeky and useful: you own your data and don't depend on third-party services. It's also a great way to add branding to your short URLs, instead of using the same public URL shortener everyone uses.
### YOURLS Features ### Features
- Private (your links only) or Public (everybody can create short links, fine for an intranet) - Private (your links only) or Public (everybody can create short links, fine for an intranet)
- Dozens of plugins to easily implement new features - Dozens of plugins to easily implement new features
@ -30,7 +29,7 @@ Running your own URL shortener is fun, geeky and useful: you own your data and d
- Sample files to create your own public interface - Sample files to create your own public interface
**Version incluse :** 1.9.2~ynh2 **Version incluse :** 1.9.2~ynh3
**Démo :** https://yourls.org/cookie+ **Démo :** https://yourls.org/cookie+

View file

@ -1,5 +0,0 @@
SOURCE_URL=https://github.com/YOURLS/YOURLS/archive/1.9.2.zip
SOURCE_SUM=65e242aaf007f86d7bf8f7f2776ee814a632a783749151d043d669512c3b41cb
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true

View file

@ -1,8 +1,7 @@
YOURLS stands for Your Own URL Shortener. It is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or bitly). YOURLS stands for Your Own URL Shortener. It is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or bitly).
Running your own URL shortener is fun, geeky and useful: you own your data and don't depend on third-party services. It's also a great way to add branding to your short URLs, instead of using the same public URL shortener everyone uses. Running your own URL shortener is fun, geeky and useful: you own your data and don't depend on third-party services. It's also a great way to add branding to your short URLs, instead of using the same public URL shortener everyone uses.
### YOURLS Features ### Features
- Private (your links only) or Public (everybody can create short links, fine for an intranet) - Private (your links only) or Public (everybody can create short links, fine for an intranet)
- Dozens of plugins to easily implement new features - Dozens of plugins to easily implement new features

View file

@ -5,9 +5,9 @@ name = "Yourls"
description.en = "URL shortening service" description.en = "URL shortening service"
description.fr = "Service de raccourcisseur d'URL" description.fr = "Service de raccourcisseur d'URL"
version = "1.9.2~ynh2" version = "1.9.2~ynh3"
maintainers = ["Anmol Sharma"] maintainers = [""]
[upstream] [upstream]
license = "MIT" license = "MIT"
@ -17,7 +17,7 @@ admindoc = "https://docs.yourls.org/"
code = "https://github.com/YOURLS/YOURLS" code = "https://github.com/YOURLS/YOURLS"
[integration] [integration]
yunohost = ">= 11.1.15" yunohost = ">= 11.2"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = false ldap = false
@ -34,6 +34,10 @@ ram.runtime = "50M"
type = "path" type = "path"
default = "/yourls" default = "/yourls"
[install.init_main_permission]
type = "group"
default = "visitors"
[install.admin] [install.admin]
type = "user" type = "user"
@ -43,8 +47,8 @@ ram.runtime = "50M"
[install.language] [install.language]
ask.en = "Choose the application language" ask.en = "Choose the application language"
ask.fr = "Choisissez la langue de l'application" ask.fr = "Choisissez la langue de l'application"
type = "string" type = "select"
choices = ["fr_FR", "en_US"] select = ["fr_FR", "en_US"]
default = "fr_FR" default = "fr_FR"
[resources] [resources]
@ -54,10 +58,12 @@ ram.runtime = "50M"
[resources.sources.main] [resources.sources.main]
url = "https://github.com/YOURLS/YOURLS/archive/1.9.2.zip" url = "https://github.com/YOURLS/YOURLS/archive/1.9.2.zip"
sha256 = "65e242aaf007f86d7bf8f7f2776ee814a632a783749151d043d669512c3b41cb" sha256 = "65e242aaf007f86d7bf8f7f2776ee814a632a783749151d043d669512c3b41cb"
autoupdate.strategy = "latest_github_tag"
[resources.sources.fr] [resources.sources.fr]
url = "https://github.com/ozh/YOURLS-fr_FR/archive/refs/tags/1.8.zip" url = "https://github.com/ozh/YOURLS-fr_FR/archive/refs/tags/1.8.zip"
sha256 = "ef9c0e71d4559994b9df0cd0a558f6faf11eba185c4793ba0e30f3500dab1b04" sha256 = "ef9c0e71d4559994b9df0cd0a558f6faf11eba185c4793ba0e30f3500dab1b04"
autoupdate.strategy = "latest_github_tag"
[resources.system_user] [resources.system_user]
@ -65,13 +71,12 @@ ram.runtime = "50M"
[resources.permissions] [resources.permissions]
main.url = "/" main.url = "/"
admin.url = "/admin" admin.url = "/admin"
admin.show_tile = false admin.show_tile = false
admin.allowed = "admins" admin.allowed = "admins"
[resources.apt] [resources.apt]
packages = "mariadb-server php8.1-gmp php8.1-bcmath php8.1-curl php8.1-mysql php8.1-zip php8.1-gd php8.1-mbstring php8.1-xml" packages = "mariadb-server, php8.1-gmp, php8.1-bcmath, php8.1-curl, php8.1-mysql, php8.1-zip, php8.1-gd, php8.1-mbstring, php8.1-xml"
[resources.database] [resources.database]
type = "mysql" type = "mysql"

View file

@ -49,11 +49,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low ynh_add_fpm_config --usage=low --footprint=low

View file

@ -17,11 +17,6 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
# Remove the dedicated nginx config # Remove the dedicated nginx config
ynh_remove_nginx_config ynh_remove_nginx_config
#=================================================
# REMOVE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=2
# Remove the dedicated PHP-FPM config # Remove the dedicated PHP-FPM config
ynh_remove_fpm_config ynh_remove_fpm_config

View file

@ -9,15 +9,6 @@
source ../settings/scripts/_common.sh source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# STANDARD RESTORATION STEPS
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# RESTORE THE APP MAIN DIR # RESTORE THE APP MAIN DIR
#================================================= #=================================================
@ -35,6 +26,8 @@ ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=10
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# RESTORE THE MYSQL DATABASE # RESTORE THE MYSQL DATABASE
#================================================= #=================================================

View file

@ -38,11 +38,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=4
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low ynh_add_fpm_config --usage=low --footprint=low
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config