[ADD] script install_addons_theme
This commit is contained in:
parent
d48a52cf3f
commit
817fe8eb95
1 changed files with 24 additions and 0 deletions
24
script/addons/install_addons_theme.sh
Executable file
24
script/addons/install_addons_theme.sh
Executable file
|
|
@ -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
|
||||
Loading…
Reference in a new issue