File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 6
6
#
7
7
# Supported Environment Variables for configuring the default setup:
8
8
# - OPENGROK_DISTRIBUTION_BASE Base Directory of the OpenGrok Distribution
9
- # - containing the opengrok.jar
9
+ # - containing the lib/ opengrok.jar
10
10
# - OPENGROK_JAR OpenGrok java package
11
- # switch), default is DATA_ROOT/etc/ctags.config
11
+ # - DATE GNU date binary (supporting --date switch)
12
12
# - JAVA_HOME Full Path to Java Installation Root
13
13
# - JAVA Full Path to java binary (to enable 64bit JDK)
14
14
# - JAVA_OPTS Java options (e.g. for JVM memory increase view
15
15
16
16
PROGNAME=` basename $0 `
17
- DATE=" ${DATE:- date} "
17
+ if date --date=" +5 min" +" %s" > /dev/null 2>&1
18
+ then
19
+ DATE=" ${DATE:- date} "
20
+ else
21
+ DATE=" ${DATE:- gdate} "
22
+ fi
18
23
19
24
SCRIPT_DIRECTORY=` dirname " ${0} " `
20
25
SCRIPT_DIRECTORY=` cd " ${SCRIPT_DIRECTORY} " ; pwd`
You can’t perform that action at this time.
0 commit comments