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:
parent
e528362724
commit
c5d2cc73fe
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue