diff --git a/conf/admin_password.txt b/conf/admin_password.txt new file mode 100644 index 0000000..54650f4 --- /dev/null +++ b/conf/admin_password.txt @@ -0,0 +1 @@ +__PASSWORD__ \ No newline at end of file diff --git a/manifest.json b/manifest.json index dc9cceb..ec50e74 100644 --- a/manifest.json +++ b/manifest.json @@ -45,6 +45,11 @@ "name": "is_public", "type": "boolean", "default": true + }, + , + { + "name": "password", + "type": "password" } ] } diff --git a/scripts/install b/scripts/install index ad99355..7eda106 100755 --- a/scripts/install +++ b/scripts/install @@ -27,6 +27,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC +password=$YNH_APP_ARG_PASSWORD app=$YNH_APP_INSTANCE_NAME @@ -48,6 +49,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=1 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url +ynh_app_setting_set --app=$app --key=password --value="$password" #================================================= # INSTALL DEPENDENCIES @@ -111,6 +113,8 @@ ynh_add_fpm_config mkdir -p "$final_path/data/_data_/_default_/configs/" ynh_add_config --template="../conf/application.ini" --destination="$final_path/data/_data_/_default_/configs/application.ini" +ynh_add_config --template="../conf/admin_password.txt" --destination="$final_path/data/_data_/_default_/admin_password.txt" + #================================================= # GENERIC FINALIZATION #=================================================