diff --git a/scripts/install b/scripts/install index e5975f6..c4c397d 100644 --- a/scripts/install +++ b/scripts/install @@ -159,11 +159,14 @@ ynh_script_progression --message="Building Movim..." ynh_exec_warn_less ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="movim:migrate" -# date=(date "+%F %T") +date=(date "+%F %T") # # We need to register the admin in the database first before setting the admin JID # 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, t, "$date", "$date", NULL, f, t, t, t);" -# ynh_exec_as $app php$phpversion $final_path/daemon.php setAdmin $email +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 +('eric@ericandmarie.fr', NULL, 'fr', 'f', 'f', NULL, '$date', '$date', NULL, 'f', 't', 't', 'f'); + +ynh_exec_as $app php$phpversion $final_path/daemon.php setAdmin $email #================================================= # GENERIC FINALIZATION