Univention Bugzilla – Attachment 8058 Details for
Bug 40605
UMC system diagnostic module should run samba-tool dbcheck
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
samba_tool_dbcheck.py
file_40605.txt (text/plain), 948 bytes, created by
Julius Hinrichs
on 2016-09-30 14:04:10 CEST
(
hide
)
Description:
samba_tool_dbcheck.py
Filename:
MIME Type:
Creator:
Julius Hinrichs
Created:
2016-09-30 14:04:10 CEST
Size:
948 bytes
patch
obsolete
>#!/usr/bin/python2.7 ># -*- coding: utf-8 -*- > >from subprocess import Popen, PIPE, STDOUT > >from univention.management.console.modules.diagnostic import Critical > >from univention.lib.i18n import Translation >_ = Translation('univention-management-console-module-diagnostic').translate > >title = _('Error in local AD database') > >description = '\n'.join([ > _('An error occured in the local AD database.'), > _("To solve the problem, open a shell and run 'samba-tool dbcheck --fix'."), >]) > >purpose = _("This plugin calls 'samba-tool dbcheck' to find errors in the local AD database.") > >category = _('Application Level') > >def run(): > process = Popen(['samba-tool', 'dbcheck'], stdout=PIPE, stderr=STDOUT) > stdout, stderr = process.communicate() > if process.returncode: > raise Critical('\n'.join([description, '', stdout])) > > >if __name__ == '__main__': > from univention.management.console.modules.diagnostic import main > main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 40605
:
8058
|
8895