mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
perf: 优化cmd命令
This commit is contained in:
parent
4685cdcd3c
commit
22dbd288df
6
cmd
6
cmd
@ -560,7 +560,11 @@ if [ $# -gt 0 ]; then
|
|||||||
e="php artisan $@" && run_exec php "$e"
|
e="php artisan $@" && run_exec php "$e"
|
||||||
elif [[ "$1" == "php" ]]; then
|
elif [[ "$1" == "php" ]]; then
|
||||||
shift 1
|
shift 1
|
||||||
e="php $@" && run_exec php "$e"
|
if [[ "$1" == "restart" ]] || [[ "$1" == "reboot" ]]; then
|
||||||
|
restart_php
|
||||||
|
else
|
||||||
|
e="php $@" && run_exec php "$e"
|
||||||
|
fi
|
||||||
elif [[ "$1" == "nginx" ]]; then
|
elif [[ "$1" == "nginx" ]]; then
|
||||||
shift 1
|
shift 1
|
||||||
e="nginx $@" && run_exec nginx "$e"
|
e="nginx $@" && run_exec nginx "$e"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user