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:
commit
df69ab51e7
5 changed files with 9 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
||||||
location __PATH__ {
|
location __PATH__ {
|
||||||
|
|
||||||
# Path to source
|
# Path to source
|
||||||
alias __FINALPATH__/www/ ;
|
alias __FINALPATH__/www/ ;
|
||||||
|
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.6~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": {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
|
|
||||||
pkg_dependencies="php-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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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_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
|
||||||
|
|
||||||
|
@ -56,11 +57,11 @@ ynh_script_progression --message="Installing dependencies..." --time --weight=1
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
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
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
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"
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path) || ynh_die "This path already contains a folder"
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK VERSION
|
# CHECK VERSION
|
||||||
|
|
Loading…
Add table
Reference in a new issue