From c07feece23936d90ba82d70bc884f1552ab125d2 Mon Sep 17 00:00:00 2001 From: mckmonster Date: Fri, 9 Jun 2023 15:17:20 +0200 Subject: [PATCH] Change position to set password --- manifest.toml | 2 +- scripts/install | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/manifest.toml b/manifest.toml index 08eac8e..d46329a 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~ynh4" +version = "1.0.0~ynh5" maintainers = ["mckmonster"] [upstream] diff --git a/scripts/install b/scripts/install index a8f3d16..99e43c3 100644 --- a/scripts/install +++ b/scripts/install @@ -19,12 +19,6 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors -#================================================= -# Put password on system user -#================================================= - -echo "$password" | passwd --stdin $app - #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= @@ -34,6 +28,8 @@ ynh_setup_source --dest_dir="$install_dir" chown -R $app:www-data "$install_dir" +echo "$password" | passwd --stdin $app + #================================================= # Get code from git #=================================================