mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Update install
This commit is contained in:
parent
f22b7dc9ba
commit
b2ccf53f70
1 changed files with 6 additions and 7 deletions
|
@ -157,15 +157,14 @@ ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Building Movim..."
|
||||
|
||||
set_date=$(date "+%F %T")
|
||||
# In order to set an admin we must first set a admon 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');"
|
||||
|
||||
ynh_exec_warn_less ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="movim:migrate"
|
||||
|
||||
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_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, '2022-03-06 09:38:11', '2022-03-06 09:38:11', NULL, 'f', 't', 't', 'f');"
|
||||
|
||||
# Now we set an admin for Movim
|
||||
ynh_exec_as $app php$phpversion $final_path/daemon.php setAdmin $email
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue