- Update to version 1.2. - Refresh patch * prun-Add-user-config.patch - License change, from SD-3-Clause to Apache-2.0. - Use %license OBS-URL: https://build.opensuse.org/request/show/728498 OBS-URL: https://build.opensuse.org/package/show/network:cluster:ohpc/prun-ohpc?expand=0&rev=8
29 lines
608 B
Diff
29 lines
608 B
Diff
prun: Add user config
|
|
|
|
Common config file: /etc/prunrc
|
|
User config file: $HOME/.prunrc
|
|
|
|
--- prun
|
|
+++ prun.suse
|
|
@@ -11,7 +11,8 @@
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
-CONFIG=/etc/sysconfig/prun
|
|
+CONFIG=/etc/prunrc
|
|
+LOCALCONFIG=$HOME/.prunrc
|
|
MODE=native
|
|
LOGLEVEL=2 # 0=error,1=warn,2=info,3=debug
|
|
|
|
@@ -33,7 +34,9 @@
|
|
|
|
function parse_config_file () {
|
|
|
|
- if [ -e $CONFIG ];then
|
|
+ if [ -e $LOCALCONFIG ];then
|
|
+ source $CONFIG 2> /dev/null
|
|
+ elif [ -e $CONFIG ];then
|
|
source $CONFIG 2> /dev/null
|
|
fi
|
|
}
|