From 2543fc53e207e155a4e3ab92a06167a52f734bac Mon Sep 17 00:00:00 2001 From: Jens Diemer Date: Fri, 2 Aug 2024 20:08:23 +0200 Subject: [PATCH 1/3] Call "fill_basedata" manage command on install --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index ebbd375..fd45510 100755 --- a/scripts/install +++ b/scripts/install @@ -98,6 +98,8 @@ cd "$data_dir" || exit # Just for debugging: ./manage.py diffsettings +./manage.py fill_basedata --no-input + ./manage.py migrate --no-input ./manage.py collectstatic --no-input From 484056d0389459694c06bdbb7e869705708597cc Mon Sep 17 00:00:00 2001 From: Jens Diemer Date: Fri, 2 Aug 2024 20:08:42 +0200 Subject: [PATCH 2/3] Add "description" to "yunohost service add" to remove warnings --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index fd45510..53fc34c 100755 --- a/scripts/install +++ b/scripts/install @@ -115,7 +115,7 @@ cd "$data_dir" || exit #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app +yunohost service add --description $app $app #================================================= # GENERIC FINALIZATION diff --git a/scripts/restore b/scripts/restore index 77cb45c..2415146 100755 --- a/scripts/restore +++ b/scripts/restore @@ -57,7 +57,7 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app +yunohost service add --description $app $app #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 36de96b..848a09b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,7 +111,7 @@ myynh_fix_file_permissions #================================================= ynh_script_progression --message="Starting systemd service '$app'..." --weight=5 -yunohost service add $app +yunohost service add --description $app $app ynh_systemd_action --service_name=$app --action="start" --log_path="$log_file" #================================================= From c09e04cc8bb6a9e667141d2f690e4ed8bdd84d9e Mon Sep 17 00:00:00 2001 From: Jens Diemer Date: Fri, 2 Aug 2024 20:09:47 +0200 Subject: [PATCH 3/3] Remove Python 3.9 from tox config --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bfd7c75..f25dd9a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,7 +138,7 @@ exclude_lines = [ legacy_tox_ini = """ [tox] isolated_build = True -envlist = py{312,311,310,39} +envlist = py{312,311,310} skip_missing_interpreters = True [testenv]