2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-08 22:31:07 +00:00

fix(frappe-worker): Drop flags

This commit is contained in:
Lev 2021-11-09 16:49:40 +03:00
parent 5254e2aad3
commit a2db23e68e

View File

@ -133,19 +133,21 @@ drop)
: "${DB_ROOT_PASSWORD:=$POSTGRES_PASSWORD}"
: "${DB_ROOT_PASSWORD:=$MYSQL_ROOT_PASSWORD}"
: "${DB_ROOT_PASSWORD:=admin}"
if [[ -n $NO_BACKUP ]]; then
NO_BACKUP=--no-backup
FLAGS=
if [[ ${NO_BACKUP} == 1 ]]; then
FLAGS="${FLAGS} --no-backup"
fi
if [[ -n $FORCE ]]; then
FORCE=--force
if [[ ${FORCE} == 1 ]]; then
FLAGS="${FLAGS} --force"
fi
bench drop-site \
$SITE_NAME \
--root-login $DB_ROOT_USER \
--root-password $DB_ROOT_PASSWORD \
${SITE_NAME} \
--root-login ${DB_ROOT_USER} \
--root-password ${DB_ROOT_PASSWORD} \
--archived-sites-path /home/frappe/frappe-bench/sites/archive_sites \
$NO_BACKUP $FORCE
${FLAGS}
;;
migrate)