From 85df19dc69a331a68711b4e0d8665c33f56927da Mon Sep 17 00:00:00 2001 From: mckmonster Date: Fri, 9 Jun 2023 15:13:40 +0200 Subject: [PATCH] Try to fix set password --- manifest.toml | 2 +- scripts/install | 2 +- scripts/upgrade | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/manifest.toml b/manifest.toml index 460bc19..08eac8e 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~ynh3" +version = "1.0.0~ynh4" maintainers = ["mckmonster"] [upstream] diff --git a/scripts/install b/scripts/install index 6cdb9b1..a8f3d16 100644 --- a/scripts/install +++ b/scripts/install @@ -23,7 +23,7 @@ ynh_abort_if_errors # Put password on system user #================================================= -passwd $app $password +echo "$password" | passwd --stdin $app #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS diff --git a/scripts/upgrade b/scripts/upgrade index 5e28798..ac3c214 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -11,12 +11,6 @@ source /usr/share/yunohost/helpers upgrade_type=$(ynh_check_app_version_changed) -#================================================= -# Put password on system user -#================================================= - -passwd $app $password - #================================================= # STOP SYSTEMD SERVICE #=================================================