mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
Merge branch 'master' into subpath_correction
This commit is contained in:
commit
e4880d6451
8 changed files with 59 additions and 36 deletions
|
@ -1,18 +1,18 @@
|
||||||
## Problem
|
## Problem
|
||||||
-
|
-
|
||||||
|
|
||||||
## Solution
|
## Solution
|
||||||
-
|
-
|
||||||
|
|
||||||
## PR Status
|
## PR Status
|
||||||
-
|
-
|
||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
---
|
---
|
||||||
*Minor decision*
|
*Minor decision*
|
||||||
- **Upgrade previous version** :
|
- **Upgrade previous version** :
|
||||||
- [ ] **Code review** :
|
- [ ] **Code review** :
|
||||||
- [ ] **Approval (LGTM)** :
|
- [ ] **Approval (LGTM)** :
|
||||||
- [ ] **Approval (LGTM)** :
|
- [ ] **Approval (LGTM)** :
|
||||||
- **CI succeeded** : [/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/nextcloud_ynh%20xxx%20(Official)/)
|
- **CI succeeded** : [/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/nextcloud_ynh%20xxx%20(Official)/)
|
||||||
When the PR is mark as ready to merge, you have to wait for 3 days before really merge it.
|
When the PR is mark as ready to merge, you have to wait for 3 days before really merge it.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-0.9.5.tar.bz2
|
SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-0.9.6.tar.bz2
|
||||||
SOURCE_SUM=48f8d62d8c86b3aef2d090b2a7d04873c9642d6efc451389f58a5d6e89d89612
|
SOURCE_SUM=a0c4dcc6adc25a6f093bc09b0ed4c7efcbfde0726b790431c293112800ccc282
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.bz2
|
SOURCE_FORMAT=tar.bz2
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -1,26 +1,29 @@
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
location __PATH__ {
|
location __PATH__ {
|
||||||
|
|
||||||
|
# Path to source
|
||||||
|
alias __FINALPATH__/www/ ;
|
||||||
|
|
||||||
# Path to source
|
if ($scheme = http) {
|
||||||
alias __FINALPATH__/www/ ;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
|
|
||||||
if ($scheme = http) {
|
index index.php /_route.php;
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
try_files $uri $uri/ index.php /_route.php;
|
||||||
}
|
|
||||||
|
|
||||||
index index.php /_route.php;
|
location ~ [^/]\.php(/|$) {
|
||||||
try_files $uri $uri/ index.php /_route.php;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param REMOTE_USER $remote_user;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
# Increase size limit
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
client_max_body_size 2M;
|
||||||
fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
"en": "Software to manage association",
|
"en": "Software to manage association",
|
||||||
"fr": "Logiciel libre de gestion d'association"
|
"fr": "Logiciel libre de gestion d'association"
|
||||||
},
|
},
|
||||||
"version": "0.9.5~ynh3",
|
|
||||||
|
"version": "0.9.6~ynh3",
|
||||||
|
|
||||||
"url": "http://garradin.eu/a-propos/",
|
"url": "http://garradin.eu/a-propos/",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
@ -49,6 +51,10 @@
|
||||||
"en": "Is it a public application?",
|
"en": "Is it a public application?",
|
||||||
"fr": "Est-ce une application publique ?"
|
"fr": "Est-ce une application publique ?"
|
||||||
},
|
},
|
||||||
|
"help": {
|
||||||
|
"en": "The SSO is not implemented for this app and yunohost is not sure for hundred of users...",
|
||||||
|
"fr": "Le SSO n'est pas implémenté pour cette application et yunohost n'est pas sûr pour une centaine d'utilisateurs..."
|
||||||
|
},
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
pkg_dependencies="php7.0-sqlite3"
|
|
||||||
|
pkg_dependencies="php-sqlite3"
|
||||||
|
|
||||||
# ============= FUTURE YUNOHOST HELPER =============
|
# ============= FUTURE YUNOHOST HELPER =============
|
||||||
|
|
||||||
|
@ -42,4 +43,4 @@ ynh_permission_has_user() {
|
||||||
allowed_users="$(echo "$perm" | grep --invert-match '^#')"
|
allowed_users="$(echo "$perm" | grep --invert-match '^#')"
|
||||||
# Grep the list of users an return the result if the user is indeed into the list
|
# Grep the list of users an return the result if the user is indeed into the list
|
||||||
echo "$allowed_users" | grep --quiet --word "$user"
|
echo "$allowed_users" | grep --quiet --word "$user"
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,7 @@ fi
|
||||||
# MODIFY URL IN NGINX CONF
|
# MODIFY URL IN NGINX CONF
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating nginx web server configuration..." --time --weight=1
|
ynh_script_progression --message="Updating nginx web server configuration..." --time --weight=1
|
||||||
|
|
||||||
nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf
|
nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf
|
||||||
|
|
||||||
# Change the path in the nginx config file
|
# Change the path in the nginx config file
|
||||||
|
|
|
@ -46,10 +46,9 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Storing installation settings..." --time --weight=1
|
ynh_script_progression --message="Storing installation settings..." --time --weight=1
|
||||||
|
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
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=path --value=$path_url
|
||||||
ynh_app_setting_set --app=$app --key=is_public --value=$is_public
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Install dependency to convert tracks to a readable format for the browser
|
# Install dependency to convert tracks to a readable format for the browser
|
||||||
|
@ -62,6 +61,7 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring system user..." --time --weight=1
|
ynh_script_progression --message="Configuring system user..." --time --weight=1
|
||||||
|
|
||||||
# Create a system user
|
# Create a system user
|
||||||
ynh_system_user_create --username=$app
|
ynh_system_user_create --username=$app
|
||||||
|
|
||||||
|
|
|
@ -49,9 +49,9 @@ fi
|
||||||
# is_public=$(ynh_app_setting_get --app=$app --key=is_public)
|
# is_public=$(ynh_app_setting_get --app=$app --key=is_public)
|
||||||
|
|
||||||
if [ -n "$is_public" ]; then
|
if [ -n "$is_public" ]; then
|
||||||
# Remove unprotected_uris
|
# Remove protected_uris
|
||||||
ynh_app_setting_delete --app=$app --key=unprotected_uris
|
ynh_app_setting_delete --app=$app --key=protected_uris
|
||||||
|
|
||||||
#Removing skipped/unprotected_uris under certain conditions, remove the visitors group added during the migration process of 3.7
|
#Removing skipped/unprotected_uris under certain conditions, remove the visitors group added during the migration process of 3.7
|
||||||
#Remove skipped_uris. If the app was public, add visitors again to the main permission
|
#Remove skipped_uris. If the app was public, add visitors again to the main permission
|
||||||
if ynh_permission_has_user --permission=main --user=visitors
|
if ynh_permission_has_user --permission=main --user=visitors
|
||||||
|
@ -94,6 +94,18 @@ ynh_clean_setup () {
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
|
# #=================================================
|
||||||
|
# # CHECK THE PATH
|
||||||
|
# #=================================================
|
||||||
|
|
||||||
|
# Normalize the URL path syntax
|
||||||
|
# N.B. : this is for app installations before YunoHost 2.7
|
||||||
|
# where this value might be something like /foo/ or foo/
|
||||||
|
# instead of /foo ....
|
||||||
|
# If nobody installed your app before 2.7, then you may
|
||||||
|
# safely remove this line
|
||||||
|
#path_url=$(ynh_normalize_url_path --path_url=$path_url)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue