fix(presence-service): 修复 deploy.sh 自调用权限问题
使用 bash "$SCRIPT_DIR/deploy.sh" 替代 $0 避免路径变化导致的权限问题 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
893399e07f
commit
c3f4243e81
|
|
@ -61,7 +61,7 @@ case "$1" in
|
||||||
log_success "$SERVICE_NAME started"
|
log_success "$SERVICE_NAME started"
|
||||||
log_info "Waiting for service to be healthy..."
|
log_info "Waiting for service to be healthy..."
|
||||||
sleep 5
|
sleep 5
|
||||||
$0 health
|
bash "$SCRIPT_DIR/deploy.sh" health
|
||||||
;;
|
;;
|
||||||
|
|
||||||
start-deps)
|
start-deps)
|
||||||
|
|
@ -86,8 +86,8 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart)
|
restart)
|
||||||
$0 stop
|
bash "$SCRIPT_DIR/deploy.sh" stop
|
||||||
$0 start
|
bash "$SCRIPT_DIR/deploy.sh" start
|
||||||
;;
|
;;
|
||||||
|
|
||||||
up)
|
up)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue