mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-25 03:16:02 +00:00
Merge pull request #548 from vrslev/fix-socketio-cmd
fix(frappe-socketio): Remove dead `doctor` command
This commit is contained in:
commit
5aa6e4ec4a
@ -1,15 +1,17 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
function checkConfigExists() {
|
function checkConfigExists() {
|
||||||
COUNTER=0
|
COUNTER=0
|
||||||
while [[ ! -e /home/frappe/frappe-bench/sites/common_site_config.json && ${COUNTER} -le 30 ]]; do
|
while [[ ! -e /home/frappe/frappe-bench/sites/common_site_config.json && ${COUNTER} -le 30 ]]; do
|
||||||
((COUNTER = COUNTER + 1))
|
|
||||||
echo "config file not created, retry ${COUNTER}"
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
((COUNTER = COUNTER + 1))
|
||||||
|
echo "config file not created, retry ${COUNTER}" >&2
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ! -e /home/frappe/frappe-bench/sites/common_site_config.json ]]; then
|
if [[ ! -e /home/frappe/frappe-bench/sites/common_site_config.json ]]; then
|
||||||
echo "timeout: config file not created"
|
echo "timeout: config file not created" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -17,11 +19,6 @@ function checkConfigExists() {
|
|||||||
if [[ "$1" == 'start' ]]; then
|
if [[ "$1" == 'start' ]]; then
|
||||||
checkConfigExists
|
checkConfigExists
|
||||||
node /home/frappe/frappe-bench/apps/frappe/socketio.js
|
node /home/frappe/frappe-bench/apps/frappe/socketio.js
|
||||||
|
|
||||||
elif [[ "$1" == 'doctor' ]]; then
|
|
||||||
node /home/frappe/frappe-bench/apps/frappe/health.js
|
|
||||||
|
|
||||||
else
|
else
|
||||||
exec -c "$@"
|
exec -c "$@"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user