1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

scripts: fix restoration of smtp user password

This commit is contained in:
Pierre de La Morinerie 2018-01-30 12:14:28 +05:30
parent 068bc7d399
commit 3a6b0c752b

View file

@ -72,7 +72,7 @@ ynh_mysql_connect_as $db_user $db_pwd $db_name < ./db.sql
# Create the dedicated user (if not existing)
smtp_user="$app"
if ! ynh_system_user_exists "$smtp_user"; then
smtp_password=$(ynh_app_setting_get $app smtp_password)
smtp_password=$(ynh_app_setting_get $app smtppwd)
useradd -M --shell /bin/false -p $(openssl passwd -1 "$smtp_password") "$smtp_user"
fi