mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
swith to path_url
This commit is contained in:
parent
0c172d881d
commit
c02f0de04d
3 changed files with 7 additions and 7 deletions
|
@ -22,7 +22,7 @@ ynh_abort_if_errors
|
||||||
|
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
|
|
||||||
path="/Microsoft-Server-ActiveSync"
|
path_url="/Microsoft-Server-ActiveSync"
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -39,7 +39,7 @@ test ! -e "$statedir" || ynh_die "This path already contains a folder"
|
||||||
final_logpath="/var/log/$app"
|
final_logpath="/var/log/$app"
|
||||||
|
|
||||||
# Register (book) web path
|
# Register (book) web path
|
||||||
ynh_webpath_register $app $domain $path
|
ynh_webpath_register $app $domain $path_url
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE SETTINGS FROM MANIFEST
|
# STORE SETTINGS FROM MANIFEST
|
||||||
|
@ -47,7 +47,7 @@ ynh_webpath_register $app $domain $path
|
||||||
ynh_print_info "Storing installation settings..."
|
ynh_print_info "Storing installation settings..."
|
||||||
|
|
||||||
ynh_app_setting_set $app domain $domain
|
ynh_app_setting_set $app domain $domain
|
||||||
ynh_app_setting_set $app path $path
|
ynh_app_setting_set $app path $path_url
|
||||||
|
|
||||||
ynh_app_setting_set $app statedir "$statedir"
|
ynh_app_setting_set $app statedir "$statedir"
|
||||||
ynh_app_setting_set $app final_logpath "$final_logpath"
|
ynh_app_setting_set $app final_logpath "$final_logpath"
|
||||||
|
|
|
@ -25,7 +25,7 @@ ynh_print_info "Loading settings..."
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
path=$(ynh_app_setting_get $app path)
|
path_url=$(ynh_app_setting_get $app path)
|
||||||
final_path=$(ynh_app_setting_get $app final_path)
|
final_path=$(ynh_app_setting_get $app final_path)
|
||||||
statedir=$(ynh_app_setting_get $app statedir)
|
statedir=$(ynh_app_setting_get $app statedir)
|
||||||
final_logpath=$(ynh_app_setting_get $app final_logpath)
|
final_logpath=$(ynh_app_setting_get $app final_logpath)
|
||||||
|
@ -35,8 +35,8 @@ final_logpath=$(ynh_app_setting_get $app final_logpath)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info "Validating restoration parameters..."
|
ynh_print_info "Validating restoration parameters..."
|
||||||
|
|
||||||
ynh_webpath_available $domain $path \
|
ynh_webpath_available $domain $path_url \
|
||||||
|| ynh_die "Path not available: ${domain}${path}"
|
|| ynh_die "Path not available: ${domain}${path_url}"
|
||||||
test ! -d $final_path \
|
test ! -d $final_path \
|
||||||
|| ynh_die "There is already a directory: $final_path "
|
|| ynh_die "There is already a directory: $final_path "
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ ynh_print_info "Loading installation settings..."
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
path=$(ynh_app_setting_get $app path)
|
path_url=$(ynh_app_setting_get $app path)
|
||||||
final_path=$(ynh_app_setting_get $app final_path)
|
final_path=$(ynh_app_setting_get $app final_path)
|
||||||
statedir=$(ynh_app_setting_get $app statedir)
|
statedir=$(ynh_app_setting_get $app statedir)
|
||||||
final_logpath=$(ynh_app_setting_get $app final_logpath)
|
final_logpath=$(ynh_app_setting_get $app final_logpath)
|
||||||
|
|
Loading…
Add table
Reference in a new issue