Skip to content

Commit

Permalink
show also current 'commit' with the freifunk version
Browse files Browse the repository at this point in the history
  • Loading branch information
cremesk committed Nov 11, 2024
1 parent c5cf31a commit aa9900b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion salt/freifunk/base/ddmesh/usr/local/bin/freifunk-version
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

version="$(head -n3 /srv/ffdd-server/init_server.sh | grep -oP '(?<=^#version=).+' | tr -d '"')"
rev="$(cd /srv/ffdd-server && git describe --all --abbrev=0 | cut -f2 -d"/")"
commit="$(cd /srv/ffdd-server && git show --oneline -s | awk '{print $1}')"

printf '%s - %s\n' "$version" "$rev"
printf '%s - %s (%s)\n' "$version" "$rev" "$commit"

exit 0
2 changes: 1 addition & 1 deletion salt/freifunk/base/ssh/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ssh_check:
-----------------------------------------------------------------
Freifunk {{ servername }}
( Version: {{ freifunk_version }} )
Version: {{ freifunk_version }}
-----------------------------------------------------------------
- user: root
- group: root
Expand Down

0 comments on commit aa9900b

Please sign in to comment.