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 291706 Details for
Bug 428799
openserdbctl script
[?]
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]
openserdbctl patch to read config from /etc too
openserdbctl.patch (text/plain), 1.65 KB, created by
Jan ONDREJ
on 2008-01-15 12:18:03 UTC
(
hide
)
Description:
openserdbctl patch to read config from /etc too
Filename:
MIME Type:
Creator:
Jan ONDREJ
Created:
2008-01-15 12:18:03 UTC
Size:
1.65 KB
patch
obsolete
>Index: openserdbctl >=================================================================== >--- openserdbctl (revision 3518) >+++ openserdbctl (working copy) >@@ -7,37 +7,29 @@ > #=================================================================== > > PATH=$PATH:/usr/local/sbin/ >+TEST="false" > >- > ### include resource files, if any >+if [ -f /etc/openser/openserctlrc ]; then >+ . /etc/openser/openserctlrc >+fi > if [ -f /usr/local/etc/openser/openserctlrc ]; then > . /usr/local/etc/openser/openserctlrc > fi > if [ -f ~/.openserctlrc ]; then > . ~/.openserctlrc > fi >-### for testing only >-if [ -f ./openserctlrc ]; then >- . ./openserctlrc >+# for testing only, please don't enable this in production environments >+# as this introduce security risks >+if [ $TEST = "true" ]; then >+ if [ -f ./openserctlrc ]; then >+ . ./openserctlrc >+ fi > fi > > >-##### ------------------------------------------------ ##### >-### force values for variables in this section >-# >- >-# you better set the variables in ~/.openserctlrc >- >- >-if [ -z "$ETCDIR" ] ; then >- ETCDIR="/usr/local/etc/openser" >-fi >- >-##### ------------------------------------------------ ##### >-### >-# > ### version for this script >-VERSION='1.3dev - $Revision$' >+VERSION='$Revision$' > > if [ -z "$MYDIR" ] ; then > MYDIR=`dirname $0` >@@ -51,13 +43,6 @@ > fi > > >-# force values for variables in this section >-# you better set the variables in ~/.openserctlrc >-if [ -z "$ETCDIR" ] ; then >- ETCDIR="/usr/local/etc/openser" >-fi >- >- > ##### ------------------------------------------------ ##### > ### load base functions > # >@@ -298,6 +283,9 @@ > openser_berkeley "$@" > exit $? > ;; >+ version) >+ echo "$0 $VERSION" >+ ;; > *) > usage > exit 1;
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 428799
: 291706