From 8868a298d9ffcfc2ec090c1fce2c58298a5d4b19 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 4 Mar 2022 20:13:39 +0100 Subject: [PATCH] less warnings --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index e3d85cc..843318f 100755 --- a/scripts/install +++ b/scripts/install @@ -189,17 +189,17 @@ ynh_script_progression --message="Filling up the database..." --weight=10 cd "${final_path}" # the user needs to be weblate for postgresql - sudo --user=$app $final_path/venv/bin/weblate migrate --noinput + ynh_exec_warn_less sudo --user=$app $final_path/venv/bin/weblate migrate --noinput # generate static files - sudo --user=$app $final_path/venv/bin/weblate collectstatic --noinput - sudo --user=$app $final_path/venv/bin/weblate createadmin --no-color \ + ynh_exec_warn_less sudo --user=$app $final_path/venv/bin/weblate collectstatic --noinput + ynh_exec_warn_less sudo --user=$app $final_path/venv/bin/weblate createadmin --no-color \ --password "$password" \ --username "$admin" \ --email "$admin_mail" # Check the configuration # This may fail in some cases with errors, etc., but the app works and the user can fix issues later. - sudo --user=$app $final_path/venv/bin/weblate check --deploy || true + ynh_exec_warn_less sudo --user=$app $final_path/venv/bin/weblate check --deploy || true ) #=================================================