mirror of
https://github.com/YunoHost-Apps/icecoder_ynh.git
synced 2024-09-03 19:26:10 +02:00
Update install
This commit is contained in:
parent
e481fcb161
commit
6c1d45fe79
1 changed files with 8 additions and 1 deletions
|
@ -22,7 +22,6 @@ ynh_abort_if_errors
|
|||
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$YNH_APP_ARG_PATH/icecoder
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
|
||||
### If it's a multi-instance app, meaning it can be installed several times independently
|
||||
### The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||
|
@ -54,6 +53,14 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
|
|||
final_path=$path_url
|
||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||
|
||||
if [[ $path_url =~ my_webapp ]]
|
||||
then
|
||||
$path_url=ynh_app_setting_get --app=my_webapp --key=path
|
||||
$path_url=$path_url/icecoder
|
||||
else
|
||||
$path_url=$YNH_APP_ARG_PATH
|
||||
fi
|
||||
|
||||
# Register (book) web path
|
||||
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue