From 9297a867fbf5ed9ae98e7c5abf987157a372103a Mon Sep 17 00:00:00 2001 From: mckmonster Date: Fri, 9 Jun 2023 15:06:13 +0200 Subject: [PATCH] Add password on system user --- manifest.toml | 7 +++---- scripts/install | 6 ++++++ scripts/upgrade | 6 ++++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/manifest.toml b/manifest.toml index cb6914c..460bc19 100644 --- a/manifest.toml +++ b/manifest.toml @@ -2,7 +2,7 @@ packaging_format = 2 name = "Site TDAH-France" id = "spip_hypersupers" description.fr = "Installation SPIP pour une installation de dev pour le site TDAH-France" -version = "1.0.0~ynh2" +version = "1.0.0~ynh3" maintainers = ["mckmonster"] [upstream] @@ -37,9 +37,8 @@ ram.runtime = "1M" # type = "string" # default = "admin" - # [install.password] - # type = "password" - # default = "admin@spip" + [install.password] + type = "password" # [install.users_status] # type = "string" diff --git a/scripts/install b/scripts/install index caaa9a7..6cdb9b1 100644 --- a/scripts/install +++ b/scripts/install @@ -19,6 +19,12 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors +#================================================= +# Put password on system user +#================================================= + +passwd $app $password + #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index ac3c214..5e28798 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -11,6 +11,12 @@ source /usr/share/yunohost/helpers upgrade_type=$(ynh_check_app_version_changed) +#================================================= +# Put password on system user +#================================================= + +passwd $app $password + #================================================= # STOP SYSTEMD SERVICE #=================================================