mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
Update install
This commit is contained in:
parent
8e51aec792
commit
73b7537d18
1 changed files with 11 additions and 4 deletions
|
@ -25,24 +25,31 @@ ynh_abort_if_errors
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url=$YNH_APP_ARG_PATH
|
path_url=$YNH_APP_ARG_PATH
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
|
||||||
welcometext=$YNH_APP_ARG_WELCOMETEXT
|
welcometext=$YNH_APP_ARG_WELCOMETEXT
|
||||||
registername=$YNH_APP_ARG_REGISTERNAME
|
registername=$YNH_APP_ARG_REGISTERNAME
|
||||||
instance_id=$YNH_APP_INSTANCE_NUMBER
|
instance_id=$YNH_APP_INSTANCE_NUMBER
|
||||||
mumbleweb=$YNH_APP_ARG_MUMBLEWEB
|
mumbleweb=$YNH_APP_ARG_MUMBLEWEB
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
|
||||||
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
server_password=$(ynh_string_random)
|
server_password=$(ynh_string_random)
|
||||||
su_passwd=$(ynh_string_random)
|
su_passwd=$(ynh_string_random)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
if [ "$mumbleweb" -eq 1 ] ; then
|
||||||
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
||||||
|
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
||||||
|
|
||||||
|
# Register (book) web path
|
||||||
|
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE SETTINGS FROM MANIFEST
|
# STORE SETTINGS FROM MANIFEST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue