Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 295305 Details for
Bug 432691
warn on attempt to install replica on wrong server
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
warn if the hostname doesn't match the filename
freeipa-676-warn.patch (text/plain), 1.18 KB, created by
Rob Crittenden
on 2008-02-19 15:48:02 UTC
(
hide
)
Description:
warn if the hostname doesn't match the filename
Filename:
MIME Type:
Creator:
Rob Crittenden
Created:
2008-02-19 15:48:02 UTC
Size:
1.18 KB
patch
obsolete
># HG changeset patch ># User Rob Crittenden <rcritten@redhat.com> ># Date 1203435982 18000 ># Node ID 88d3cb5e57dcdcadc1ce93d50adec05777a643f8 ># Parent 7b71bea8c46e6249f93e485d0e921819067a16c9 >Warn if a user tries to install a replica on the wrong target machine > >432691 > >diff -r 7b71bea8c46e -r 88d3cb5e57dc ipa-server/ipa-install/ipa-replica-install >--- a/ipa-server/ipa-install/ipa-replica-install Tue Feb 19 10:20:13 2008 -0500 >+++ b/ipa-server/ipa-install/ipa-replica-install Tue Feb 19 10:46:22 2008 -0500 >@@ -137,6 +137,18 @@ def main(): > config = ReplicaConfig() > read_info(dir, config) > config.host_name = get_host_name() >+ p = filename.split('-') >+ if p[len(p)-1] != config.host_name: >+ try: >+ print "This replica was created for '%s' but this machine is named '%s'" % (p[len(p)-1], config.host_name) >+ yesno = raw_input("This may cause problems. Continue? [Y/n]: ") >+ print "" >+ if not yesno or yesno.lower()[0] == "y": >+ pass >+ else: >+ sys.exit(0) >+ except KeyboardInterrupt: >+ sys.exit(0) > config.repl_password = ipautil.ipa_generate_password() > config.dir = dir >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 432691
: 295305