|
|
@ -172,6 +172,7 @@ def initdInstall(): |
|
|
|
initd_bin = getInitDFile() |
|
|
|
initd_bin = getInitDFile() |
|
|
|
shutil.copyfile(source_bin, initd_bin) |
|
|
|
shutil.copyfile(source_bin, initd_bin) |
|
|
|
public.execShell('chmod +x ' + initd_bin) |
|
|
|
public.execShell('chmod +x ' + initd_bin) |
|
|
|
|
|
|
|
public.execShell('chkconfig --add ' + getPluginName()) |
|
|
|
return 'ok' |
|
|
|
return 'ok' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -179,6 +180,8 @@ def initdUinstall(): |
|
|
|
if not app_debug: |
|
|
|
if not app_debug: |
|
|
|
if public.isAppleSystem(): |
|
|
|
if public.isAppleSystem(): |
|
|
|
return "Apple Computer does not support" |
|
|
|
return "Apple Computer does not support" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public.execShell('chkconfig --del ' + getPluginName()) |
|
|
|
initd_bin = getInitDFile() |
|
|
|
initd_bin = getInitDFile() |
|
|
|
os.remove(initd_bin) |
|
|
|
os.remove(initd_bin) |
|
|
|
return 'ok' |
|
|
|
return 'ok' |
|
|
|