mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
fix
This commit is contained in:
parent
426256b7fa
commit
ba8b7468af
3 changed files with 11 additions and 6 deletions
|
@ -2,17 +2,17 @@
|
||||||
# https://github.com/WeblateOrg/weblate/blob/master/weblate/examples/weblate.nginx.conf
|
# https://github.com/WeblateOrg/weblate/blob/master/weblate/examples/weblate.nginx.conf
|
||||||
location ~ ^__PATH__/favicon.ico$ {
|
location ~ ^__PATH__/favicon.ico$ {
|
||||||
|
|
||||||
alias __INSTALL_DIR__/cache/static/favicon.ico;
|
alias __INSTALL_DIR__/data/cache/static/favicon.ico;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/static/ {
|
location __PATH__/static/ {
|
||||||
alias __INSTALL_DIR__/cache/static/;
|
alias __INSTALL_DIR__/data/cache/static/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/media/ {
|
location __PATH__/media/ {
|
||||||
alias __INSTALL_DIR__/media/;
|
alias __INSTALL_DIR__/data/media/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,13 +155,18 @@ ynh_script_progression --message="Filling up the database..." --weight=10
|
||||||
|
|
||||||
# the user needs to be weblate for postgresql
|
# the user needs to be weblate for postgresql
|
||||||
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate migrate --noinput
|
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate migrate --noinput
|
||||||
# generate static files
|
|
||||||
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate collectstatic --noinput
|
|
||||||
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate createadmin --no-color \
|
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate createadmin --no-color \
|
||||||
--password "$password" \
|
--password "$password" \
|
||||||
--username "$admin" \
|
--username "$admin" \
|
||||||
--email "$admin_mail"
|
--email "$admin_mail"
|
||||||
|
|
||||||
|
# generate static files
|
||||||
|
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate collectstatic --noinput
|
||||||
|
|
||||||
|
# https://docs.weblate.org/en/latest/admin/install/venv-debian.html
|
||||||
|
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate compress --noinput
|
||||||
|
|
||||||
# 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.
|
||||||
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate check --deploy || true
|
ynh_exec_warn_less sudo --user=$app $install_dir/venv/bin/weblate check --deploy || true
|
||||||
|
|
|
@ -16,6 +16,6 @@ test_format = 1.0
|
||||||
# Commits to test upgrade from
|
# Commits to test upgrade from
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
|
|
||||||
test_upgrade_from.2749e7b.name = "0.5.3 - packaging v1"
|
test_upgrade_from.2749e7b.name = "5.3.1 - packaging v1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue