|
|
@ -206,6 +206,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' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -215,6 +216,7 @@ def initdUinstall(): |
|
|
|
return "Apple Computer does not support" |
|
|
|
return "Apple Computer does not support" |
|
|
|
initd_bin = getInitDFile() |
|
|
|
initd_bin = getInitDFile() |
|
|
|
os.remove(initd_bin) |
|
|
|
os.remove(initd_bin) |
|
|
|
|
|
|
|
public.execShell('chkconfig --del ' + getPluginName()) |
|
|
|
return 'ok' |
|
|
|
return 'ok' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|