Browse Source

[Bug][Security] Fix dir permission (#8938)

* only config dir need 700

* delete -R

* all config dir change

* yaml file in config dir change

* config dir permission change
3.0.0/version-upgrade
gaojun2048 3 years ago committed by GitHub
parent
commit
3955d84ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-worker/src/main/bin/start.sh

2
dolphinscheduler-worker/src/main/bin/start.sh

@ -19,7 +19,7 @@
BIN_DIR=$(dirname $0)
DOLPHINSCHEDULER_HOME=${DOLPHINSCHEDULER_HOME:-$(cd $BIN_DIR/..; pwd)}
chmod 700 -R ${DOLPHINSCHEDULER_HOME}
chmod -R 700 ${DOLPHINSCHEDULER_HOME}/config
export DOLPHINSCHEDULER_WORK_HOME=${DOLPHINSCHEDULER_HOME}
JAVA_OPTS=${JAVA_OPTS:-"-server -Xms4g -Xmx4g -Xmn2g -XX:+PrintGCDetails -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof"}

Loading…
Cancel
Save