mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
less warnings
This commit is contained in:
parent
a420f85623
commit
8868a298d9
1 changed files with 4 additions and 4 deletions
|
@ -189,17 +189,17 @@ ynh_script_progression --message="Filling up the database..." --weight=10
|
||||||
cd "${final_path}"
|
cd "${final_path}"
|
||||||
|
|
||||||
# the user needs to be weblate for postgresql
|
# 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
|
# generate static files
|
||||||
sudo --user=$app $final_path/venv/bin/weblate collectstatic --noinput
|
ynh_exec_warn_less 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 createadmin --no-color \
|
||||||
--password "$password" \
|
--password "$password" \
|
||||||
--username "$admin" \
|
--username "$admin" \
|
||||||
--email "$admin_mail"
|
--email "$admin_mail"
|
||||||
|
|
||||||
# Check the configuration
|
# Check the configuration
|
||||||
# This may fail in some cases with errors, etc., but the app works and the user can fix issues later.
|
# 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
|
||||||
)
|
)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue