1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

Merge branch 'master' into upgrade

This commit is contained in:
Robles Rodolphe 2020-06-17 19:41:09 +02:00 committed by GitHub
commit df69ab51e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 6 deletions

View file

@ -1,9 +1,9 @@
location __PATH__ {
# Path to source
alias __FINALPATH__/www/ ;
# Path to source
alias __FINALPATH__/www/ ;
if ($scheme = http) {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}

View file

@ -9,7 +9,9 @@
"en": "Software to manage association",
"fr": "Logiciel libre de gestion d'association"
},
"version": "0.9.6~ynh3",
"url": "http://garradin.eu/a-propos/",
"license": "GPL-3.0-or-later",
"maintainer": {

View file

@ -5,6 +5,7 @@
#=================================================
# dependencies used by the app
pkg_dependencies="php-sqlite3"
# ============= FUTURE YUNOHOST HELPER =============
@ -42,4 +43,4 @@ ynh_permission_has_user() {
allowed_users="$(echo "$perm" | grep --invert-match '^#')"
# Grep the list of users an return the result if the user is indeed into the list
echo "$allowed_users" | grep --quiet --word "$user"
}
}

View file

@ -46,6 +46,7 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
#=================================================
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=path --value=$path_url
@ -56,11 +57,11 @@ ynh_script_progression --message="Installing dependencies..." --time --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Configuring system user..." --time --weight=1
# Create a system user
ynh_system_user_create --username=$app

View file

@ -18,7 +18,6 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
#is_public=$(ynh_app_setting_get --app=$app --key=is_public)
final_path=$(ynh_app_setting_get --app=$app --key=final_path) || ynh_die "This path already contains a folder"
#=================================================
# CHECK VERSION