Arguments are given to the install script from the manifest in it's order. For instance, for Roundcube,
path arguments will respectively be retreived from environment variables or from
$2 parameters in the install script.
# Retrieve arguments domain=$YNH_APP_ARG_DOMAIN path=$YNH_APP_ARG_PATH
Remove, upgrade, backup and restore scripts could need arguments.
YunoHost could save arguments with this command which is generally used in the install script:
# Store config on YunoHost instance ynh_app_setting_set $app domain $domain
Then, the script can retrieve saved arguments with this command:
domain=$(ynh_app_setting_get $app domain)
Those data are saved in
Found errors? Think you can improve this documentation? Simply click the Edit link at the top of the page, and then the icon on Github to suggest changes.