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

[enh] Reset admin password with a random one

This commit is contained in:
ljf 2017-02-10 00:15:30 +01:00
parent e528362724
commit c5d2cc73fe

View file

@ -43,6 +43,12 @@ mysql -u $db_user -p$db_pwd $db_user < ./structure.sql
ynh_configure data.sql ./data.sql
mysql -u $db_user -p$db_pwd $db_user < ./data.sql
# Randomize Password user
ls_cli=$local_path/application/commands/console.php
set +x
ynh_exec_as "$user" php $ls_cli resetpassword "$admin" "$(ynh_string_random 24)"
set -x
# Set permissions
ynh_set_default_perm $local_path
sudo chmod -R u+w $local_path/tmp