mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-01 11:47:51 +08:00
[bugfix] remove Conflicting configuration sudo and user (#3038)
Co-authored-by: zhangchunyang1024 <zhangchunyang0123@gamil.com>
This commit is contained in:
parent
7445fa946b
commit
0f8cb383a3
@ -26,7 +26,8 @@ class DolphinAlertService(Script):
|
||||
import params
|
||||
env.set_params(params)
|
||||
self.install_packages(env)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home), user=params.dolphin_user, sudo=True)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home))
|
||||
Execute(('chown', '-R', params.dolphin_user + ":" + params.dolphin_group, params.dolphin_home))
|
||||
|
||||
def configure(self, env):
|
||||
import params
|
||||
|
@ -26,7 +26,8 @@ class DolphinApiService(Script):
|
||||
import params
|
||||
env.set_params(params)
|
||||
self.install_packages(env)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home), user=params.dolphin_user, sudo=True)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home))
|
||||
Execute(('chown', '-R', params.dolphin_user + ":" + params.dolphin_group, params.dolphin_home))
|
||||
|
||||
def configure(self, env):
|
||||
import params
|
||||
|
@ -26,8 +26,8 @@ class DolphinLoggerService(Script):
|
||||
import params
|
||||
env.set_params(params)
|
||||
self.install_packages(env)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home), user=params.dolphin_user, sudo=True)
|
||||
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home))
|
||||
Execute(('chown', '-R', params.dolphin_user + ":" + params.dolphin_group, params.dolphin_home))
|
||||
def configure(self, env):
|
||||
import params
|
||||
params.pika_slave = True
|
||||
|
@ -27,7 +27,8 @@ class DolphinMasterService(Script):
|
||||
import params
|
||||
env.set_params(params)
|
||||
self.install_packages(env)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home), user=params.dolphin_user, sudo=True)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home))
|
||||
Execute(('chown', '-R', params.dolphin_user + ":" + params.dolphin_group, params.dolphin_home))
|
||||
|
||||
def configure(self, env):
|
||||
import params
|
||||
|
@ -26,7 +26,8 @@ class DolphinWorkerService(Script):
|
||||
import params
|
||||
env.set_params(params)
|
||||
self.install_packages(env)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home), user=params.dolphin_user, sudo=True)
|
||||
Execute(('chmod', '-R', '777', params.dolphin_home))
|
||||
Execute(('chown', '-R', params.dolphin_user + ":" + params.dolphin_group, params.dolphin_home))
|
||||
|
||||
def configure(self, env):
|
||||
import params
|
||||
|
Loading…
Reference in New Issue
Block a user