From 87671b5d94652d7aef903a1a5036782f370dd1e2 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 6 Mar 2022 11:08:31 +0100 Subject: [PATCH] Update install --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index fe60416..6841c03 100644 --- a/scripts/install +++ b/scripts/install @@ -160,11 +160,11 @@ ynh_script_progression --message="Building Movim..." ynh_exec_warn_less ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="movim:migrate" set_date=$(date "+%F %T") -# In order to set an admin we must first set a admon user in the database +# In order to set an admin we must first set a user in the database ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name <<< "INSERT INTO "users" ("id", "configuration", "language", "nightmode", "nsfw", "public", "created_at", "updated_at", "nickname", "chatmain", "notificationchat", "notificationcall", "admin") VALUES ('$email', NULL, 'fr', 'f', 'f', NULL, '$set_date', '$set_date', NULL, 'f', 't', 't', 'f');" -# Now we set an admin for Movim +# Now we set this user as an admin for Movim ynh_exec_as $app php$phpversion $final_path/daemon.php setAdmin $email #=================================================