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:
parent
5a53259a38
commit
81dbc1c612
5 changed files with 6 additions and 29 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue