mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
chore: Fix linting and formatting
This commit is contained in:
parent
c6abe03628
commit
ed9032c8c8
1 changed files with 32 additions and 32 deletions
|
|
@ -101,12 +101,12 @@ start)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
worker)
|
worker)
|
||||||
checkConfigExists
|
checkConfigExists
|
||||||
checkConnection
|
checkConnection
|
||||||
|
|
||||||
: "${WORKER_TYPE:=default}"
|
: "${WORKER_TYPE:=default}"
|
||||||
bench worker --queue $WORKER_TYPE
|
bench worker --queue $WORKER_TYPE
|
||||||
;;
|
;;
|
||||||
|
|
||||||
schedule)
|
schedule)
|
||||||
checkConfigExists
|
checkConfigExists
|
||||||
|
|
@ -140,12 +140,12 @@ drop)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bench drop-site \
|
bench drop-site \
|
||||||
$SITE_NAME \
|
$SITE_NAME \
|
||||||
--root-login $DB_ROOT_USER \
|
--root-login $DB_ROOT_USER \
|
||||||
--root-password $DB_ROOT_PASSWORD \
|
--root-password $DB_ROOT_PASSWORD \
|
||||||
--archived-sites-path /home/frappe/frappe-bench/sites/archive_sites \
|
--archived-sites-path /home/frappe/frappe-bench/sites/archive_sites \
|
||||||
$NO_BACKUP $FORCE
|
$NO_BACKUP $FORCE
|
||||||
;;
|
;;
|
||||||
|
|
||||||
migrate)
|
migrate)
|
||||||
/home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/commands/migrate.py
|
/home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/commands/migrate.py
|
||||||
|
|
@ -157,15 +157,15 @@ doctor)
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
|
||||||
backup)
|
backup)
|
||||||
if [[ -n $WITH_FILES ]]; then
|
if [[ -n $WITH_FILES ]]; then
|
||||||
WITH_FILES=--with-files
|
WITH_FILES=--with-files
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for site in ${$SITES//:/ }; do
|
for site in ${SITES//:/ }; do
|
||||||
bench --site $site backup $WITH_FILES
|
bench --site $site backup $WITH_FILES
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
console)
|
console)
|
||||||
if [[ -z "$2" ]]; then
|
if [[ -z "$2" ]]; then
|
||||||
|
|
@ -174,19 +174,19 @@ console)
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bench --site "$2" console
|
bench --site "$2" console
|
||||||
;;
|
;;
|
||||||
|
|
||||||
push-backup)
|
push-backup)
|
||||||
/home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/commands/push_backup.py
|
/home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/commands/push_backup.py
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restore-backup)
|
restore-backup)
|
||||||
/home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/commands/restore_backup.py
|
/home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/commands/restore_backup.py
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exec "$@"
|
exec "$@"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue