You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+26-17
Original file line number
Diff line number
Diff line change
@@ -17,42 +17,32 @@ Templates are stored for each database family or groups. Various scripts can be
17
17
18
18
## Setup
19
19
20
-
Note, these instructions will refer to $EZPROXY_HOME, which is a placeholder for wherever you have ezproxy installed.
21
-
22
-
### Setting EzProxy Home to make the steps easier (optional)
23
-
24
-
if you are on a linux system running a bash shell, you can modify your ~/.bash_profile to include the following, replacing /usr/local/ezproxy with the path where the ezproxy binary exists.
25
-
26
-
````
27
-
EZPROXY_HOME = /usr/local/ezproxy
28
-
export EZPROXY_HOME
29
-
````
30
-
31
-
Then type `source ~/.bash_profile` to reload.
20
+
Note, these instructions will assume you have ezproxy setup in /usr/local/ezproxy. If you don't, just remember to change that in the following examples
32
21
33
22
### Set up directory
34
23
35
-
You will need a directory to contain the various ezproxy files. stanza-per-file `mkdir $EZPROXY_HOME/conf.d`
24
+
You will need a directory to contain the various ezproxy files. stanza-per-file `mkdir /usr/local/ezproxy/conf.d`
36
25
37
26
### Checkout ezproxy-collaborate on your ezproxy machine (requires git to be installed for now)
@@ -62,6 +52,7 @@ Then run `bin/generate-stanzas.pl` to create templates
62
52
## Important files and file naming conventions
63
53
64
54
* stanzas.cfg has the institutional-specific information, such as passwords
55
+
* templates are found in local and vendor, more on that below
65
56
* template files end with either .template or _i.template. Use _i.template (ex. Books24x7_i.template) when there's information that will need to be supplied by the stanzas.cfg file. This way the generate-confgs.pl script can warn folks when they haven't added the corresponding stanza.
66
57
* Files in conf.d should end in .stanza
67
58
* stanzas_include.cfg - Apparently EzProxy doesn't allow for wildcards in the INcludeFile directive. However, you can include a file of IncludeFile. So the program always overwrites this file with the latest listings. Any additional stanzas added to conf.d but not in the templates should be included either in config.txt or in separate file.
@@ -78,6 +69,24 @@ Note this is really mean to help the process of migrating from one central confi
78
69
79
70
Right now this process ignores files w/ Option in them as well as lines of comments and whitespaces.
80
71
72
+
73
+
## local and vendor directory.
74
+
75
+
Right now there's a vendor directory containing templates from various sources, it might look something like:
76
+
77
+
* vendor/
78
+
* oclc/
79
+
* ebsco/
80
+
81
+
You don't need to modify these files if you want to override them, instead you can create a local directory. Copy the vendor file in their and modify it.
82
+
83
+
You can even remove local from the .gitingore file and keep track of those local changes.
84
+
85
+
Any file in local with the same name as a file in vendor will "override" the vendor template. (The first instance of that file name in the vendor directories will override any following ones).
86
+
87
+
Right now the convention of numerical prefixes can make this a bit tricky, so be careful there. That might change based on user request.
88
+
89
+
81
90
## Goals
82
91
83
92
Overall goal - a system that makes it easy to update and maintain ezproxy stanzas.
0 commit comments