[ADD] script update_addons_all.sh and update_prod_to_dev.sh
- first script help to update all modules for a database - second script help to test a production database without affecting it
This commit is contained in:
parent
6b9fa748f5
commit
3f8dfcd392
2 changed files with 22 additions and 0 deletions
11
script/addons/update_addons_all.sh
Executable file
11
script/addons/update_addons_all.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "Update all on BD '$1'"
|
||||||
|
|
||||||
|
./run.sh --no-http --stop-after-init -d "$1" -u all
|
||||||
|
|
||||||
|
retVal=$?
|
||||||
|
if [[ $retVal -ne 0 ]]; then
|
||||||
|
echo "Error run.sh into update_addons_all.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
11
script/addons/update_prod_to_dev.sh
Executable file
11
script/addons/update_prod_to_dev.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# This script will remove mail configuration, remove backup configuration, and force admin user to test/test
|
||||||
|
echo "Update prod to dev on BD '$1'"
|
||||||
|
|
||||||
|
./script/addons/install_addons.sh "$1" user_test,disable_mail_server,disable_auto_backup
|
||||||
|
|
||||||
|
retVal=$?
|
||||||
|
if [[ $retVal -ne 0 ]]; then
|
||||||
|
echo "Error install_addons.sh into update_prod_to_dev.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Loading…
Reference in a new issue