1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00

further changes in the install script

This commit is contained in:
Anmol 2017-07-02 02:29:17 +05:30
parent 32421afe35
commit dbe3cbdaac

View file

@ -22,9 +22,8 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
admin_username=$YNH_APP_ARG_USERNAME admin_username=$YNH_APP_ARG_USERNAME
admin_name=$YNH_APP_ARG_NAME admin_name=$YNH_APP_ARG_NAME
admin_email=$YNH_APP_ARG_EMAIL admin_email=$YNH_APP_ARG_EMAIL
password=$YNH_APP_ARG_PASSWORD admin_password=$(openssl passwd -1 -salt xyz $YNH_APP_ARG_PASSWORD)
admin_password=openssl passwd -1 -salt xyz $password
# Source YunoHost helpers # Source YunoHost helpers
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -84,7 +83,7 @@ ynh_replace_string "__NAME__" "$admin_name" ../conf/sql/admin.sql
ynh_replace_string "__USER_EMAIL__" "$admin_email" ../conf/sql/admin.sql ynh_replace_string "__USER_EMAIL__" "$admin_email" ../conf/sql/admin.sql
ynh_replace_string "__PASSWORD__" "$admin_password" ../conf/sql/admin.sql ynh_replace_string "__PASSWORD__" "$admin_password" ../conf/sql/admin.sql
ynh_mysql_connect_as $db_name $db_pwd $db_name < ../conf/sql/admin.sql ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < "../conf/sql/admin.sql"
### MySQL end ### ### MySQL end ###