From dbe3cbdaacb639a5d1231c6063c030c6f9d11627 Mon Sep 17 00:00:00 2001 From: Anmol Date: Sun, 2 Jul 2017 02:29:17 +0530 Subject: [PATCH] further changes in the install script --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d780484..c9b40ec 100755 --- a/scripts/install +++ b/scripts/install @@ -22,9 +22,8 @@ is_public=$YNH_APP_ARG_IS_PUBLIC admin_username=$YNH_APP_ARG_USERNAME admin_name=$YNH_APP_ARG_NAME 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 /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 "__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 ###