mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
no message
This commit is contained in:
parent
bc264109f3
commit
5b811df8ee
16
cmd
16
cmd
@ -1,5 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
#cached execution
|
||||||
|
if [ -z "$CACHED_EXECUTION" ]; then
|
||||||
|
cat "$0" > ._cmd
|
||||||
|
chmod +x ._cmd
|
||||||
|
export CACHED_EXECUTION=1
|
||||||
|
./._cmd "$@"
|
||||||
|
EXIT_STATUS=$?
|
||||||
|
rm -f ._cmd
|
||||||
|
exit $EXIT_STATUS
|
||||||
|
fi
|
||||||
|
|
||||||
#fonts color
|
#fonts color
|
||||||
Green="\033[32m"
|
Green="\033[32m"
|
||||||
Yellow="\033[33m"
|
Yellow="\033[33m"
|
||||||
@ -479,11 +490,6 @@ if [ $# -gt 0 ]; then
|
|||||||
rm -rf "./docker/logs/supervisor"
|
rm -rf "./docker/logs/supervisor"
|
||||||
find "./storage/logs" -name "*.log" | xargs rm -rf
|
find "./storage/logs" -name "*.log" | xargs rm -rf
|
||||||
success "卸载完成"
|
success "卸载完成"
|
||||||
elif [[ "$1" == "reinstall" ]]; then
|
|
||||||
shift 1
|
|
||||||
./cmd uninstall "$@"
|
|
||||||
sleep 3
|
|
||||||
./cmd install "$@"
|
|
||||||
elif [[ "$1" == "port" ]]; then
|
elif [[ "$1" == "port" ]]; then
|
||||||
shift 1
|
shift 1
|
||||||
env_set APP_PORT "$1"
|
env_set APP_PORT "$1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user