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:
parent
068bc7d399
commit
3a6b0c752b
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ ynh_mysql_connect_as $db_user $db_pwd $db_name < ./db.sql
|
||||||
# Create the dedicated user (if not existing)
|
# Create the dedicated user (if not existing)
|
||||||
smtp_user="$app"
|
smtp_user="$app"
|
||||||
if ! ynh_system_user_exists "$smtp_user"; then
|
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"
|
useradd -M --shell /bin/false -p $(openssl passwd -1 "$smtp_password") "$smtp_user"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue