1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Fix password change

This commit is contained in:
Grena 2024-06-05 09:59:35 +02:00
parent 0b62011418
commit cab30de685

View file

@ -59,7 +59,7 @@ get__free_footprint() {
#=================================================
set__password() {
if [ "$password" == "" ]
if [ ! "$password" == "" ]
then
ynh_app_setting_set --app=$app --key=password --value="$password"
fi
@ -147,6 +147,11 @@ ynh_app_config_apply() {
then
ynh_system_user_del_group --username=$app --groups="sftp.app"
fi
if [ "${changed[password]}" == "true" ] && [ ! "$password" == "" ]
then
chpasswd <<< "${app}:${password}"
fi
if [ "$phpversion" != "none" ]
then