Add password on system user

This commit is contained in:
mckmonster 2023-06-09 15:06:13 +02:00
parent ecf3f7e072
commit 9297a867fb
3 changed files with 15 additions and 4 deletions

View file

@ -2,7 +2,7 @@ packaging_format = 2
name = "Site TDAH-France" name = "Site TDAH-France"
id = "spip_hypersupers" id = "spip_hypersupers"
description.fr = "Installation SPIP pour une installation de dev pour le site TDAH-France" 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"] maintainers = ["mckmonster"]
[upstream] [upstream]
@ -37,9 +37,8 @@ ram.runtime = "1M"
# type = "string" # type = "string"
# default = "admin" # default = "admin"
# [install.password] [install.password]
# type = "password" type = "password"
# default = "admin@spip"
# [install.users_status] # [install.users_status]
# type = "string" # type = "string"

View file

@ -19,6 +19,12 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script # Exit if an error occurs during the execution of the script
ynh_abort_if_errors ynh_abort_if_errors
#=================================================
# Put password on system user
#=================================================
passwd $app $password
#================================================= #=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
#================================================= #=================================================

View file

@ -11,6 +11,12 @@ source /usr/share/yunohost/helpers
upgrade_type=$(ynh_check_app_version_changed) upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# Put password on system user
#=================================================
passwd $app $password
#================================================= #=================================================
# STOP SYSTEMD SERVICE # STOP SYSTEMD SERVICE
#================================================= #=================================================