From 5ce0048b075b06d8fd2ae35cf70363a2362b6f79 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Fri, 1 Dec 2023 09:55:54 +0000 Subject: [PATCH 1/2] fix: disable shellcheck --- share/container/entry_script_sh | 1 + 1 file changed, 1 insertion(+) diff --git a/share/container/entry_script_sh b/share/container/entry_script_sh index 94dfa6b81..4f98e6622 100644 --- a/share/container/entry_script_sh +++ b/share/container/entry_script_sh @@ -73,6 +73,7 @@ if [ -e "/usr/share/torrust/container/message" ]; then fi # Load message of the day from Profile +# shellcheck disable=SC2016 echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' >> /etc/profile cd /home/torrust || exit 1 From 74511ee2a1fef85a45c5d9a13f74fc02c2766854 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Fri, 1 Dec 2023 09:56:19 +0000 Subject: [PATCH 2/2] feat: add script to install for development Used here: https://github.com/torrust/torrust-index-gui/blob/develop/docs/development_guide.md#run-the-tracker --- contrib/dev-tools/init/install-local.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/dev-tools/init/install-local.sh b/contrib/dev-tools/init/install-local.sh index f9806a0b8..747c357bc 100755 --- a/contrib/dev-tools/init/install-local.sh +++ b/contrib/dev-tools/init/install-local.sh @@ -7,6 +7,5 @@ mkdir -p ./storage/tracker/lib/database # Generate the sqlite database if it does not exist if ! [ -f "./storage/tracker/lib/database/sqlite3.db" ]; then - # todo: it should get the path from tracker.toml and only do it when we use sqlite - sqlite3 ./storage/tracker/lib/database/sqlite3.db "VACUUM;" + sqlite3 ./storage/tracker/lib/database/sqlite3.db "VACUUM;" fi