1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cinny_ynh.git synced 2024-09-03 18:16:13 +02:00

Allow installing in subdir again

This commit is contained in:
Salamandar 2021-11-05 14:48:40 +01:00 committed by Salamandar
parent 5a53259a38
commit 81dbc1c612
5 changed files with 6 additions and 29 deletions

View file

@ -1,11 +1,11 @@
;; Test complet
; Manifest
domain="domain.tld"
path="/"
path="/path"
is_public=1
; Checks
pkg_linter=1
setup_sub_dir=0
setup_sub_dir=1
setup_root=1
setup_nourl=0
setup_private=1
@ -14,7 +14,7 @@
#upgrade=1 from_commit=CommitHash
backup_restore=1
multi_instance=1
change_url=0
change_url=1
;;; Options
Email=
Notification=none

View file

@ -6,7 +6,7 @@
"en": "Matrix client focusing primarily on simple, elegant and secure interface",
"fr": "Client matrix orienté simplicité, élégance et sécurité"
},
"version": "1.5.0~ynh1",
"version": "1.5.0~ynh2",
"url": "https://cinny.in",
"upstream": {
"license": "MIT",
@ -37,12 +37,8 @@
{
"name": "path",
"type": "path",
"example": "/",
"default": "/",
"help": {
"en": "Cinny only supports to be installed on / for now.",
"fr": "Cinny ne peut être installé que à la racine pour le moment."
}
"example": "/cinny",
"default": "/cinny"
},
{
"name": "is_public",

View file

@ -8,14 +8,6 @@
# PERSONAL HELPERS
#=================================================
ynh_webpath_is_domain_root () {
local -A args_array=( [p]=path_url= )
local path_url
ynh_handle_getopts_args "$@"
[[ "$path_url" != "/" ]] && [[ "$path_url" != "" ]]
}
#=================================================
# EXPERIMENTAL HELPERS
#=================================================

View file

@ -62,12 +62,6 @@ then
change_path=1
fi
if ynh_webpath_is_domain_root -p "$new_path"; then
ynh_print_err "Cinny can only be installed on a domain root !"
ynh_die "Aborting."
fi
#=================================================
# STANDARD MODIFICATIONS
#=================================================

View file

@ -36,11 +36,6 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde
# Register (book) web path
if ynh_webpath_is_domain_root -p "$path_url"; then
ynh_print_err "Cinny can only be installed on a domain root !"
ynh_die "Aborting."
fi
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
#=================================================