From 817fe8eb9502f4c8a3bd99efbbde9f75d0094a78 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sat, 21 May 2022 04:50:36 -0400 Subject: [PATCH] [ADD] script install_addons_theme --- script/addons/install_addons_theme.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 script/addons/install_addons_theme.sh diff --git a/script/addons/install_addons_theme.sh b/script/addons/install_addons_theme.sh new file mode 100755 index 0000000..e05c7d3 --- /dev/null +++ b/script/addons/install_addons_theme.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# TODO addons website need to be install before to install the theme +# Argument 3 is config +if [[ $# -eq 3 ]]; then + ./script/addons/check_addons_exist.py -m "$2" -c "$3" +else + ./script/addons/check_addons_exist.py -m "$2" +fi +retVal=$? +if [[ $retVal -ne 0 ]]; then + echo "Error check_addons_exist.py into install_addons.sh" + exit 1 +fi +if [[ $# -eq 3 ]]; then + ./run.sh --no-http --stop-after-init -d "$1" --install-theme "$2" -c "$3" +else + ./run.sh --no-http --stop-after-init -d "$1" --install-theme "$2" +fi + +retVal=$? +if [[ $retVal -ne 0 ]]; then + echo "Error run.sh into install_addons_theme.sh" + exit 1 +fi