File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11sshfail2kml.json
22sshfail2kml.sqlite
33sshfail2kml.kml
4+ contrib /.release- *
Original file line number Diff line number Diff line change @@ -55,6 +55,19 @@ if [ $? -ne 0 ];then
5555 exit 1
5656fi
5757
58+ if [ -f " ${PWD} /.release-${VER} " ]; then
59+ . " ${PWD} /.release-${VER} "
60+ RELEASE=$(( RELEASE+ 1 ))
61+ else
62+ RELEASE=" 0"
63+ fi
64+ echo " RELEASE=$RELEASE " > " ${PWD} /.release-${VER} "
65+
66+
67+ echo VER=$VER
68+ echo RELEASE=$RELEASE
69+ exit
70+
5871install -d $DIR /var/lib/sshfail2kml $DIR /etc/cron.d $DIR /usr/bin
5972cp -f ../sshfail2kml $DIR /usr/bin
6073cp -f ../sshfail2kml.conf $DIR /etc
Original file line number Diff line number Diff line change 11# example, external file to work better with CI/CD
2- VER=" 1.3.4"
3- RELEASE=" 0"
2+ VER=" 1.3.5"
You can’t perform that action at this time.
0 commit comments