mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-10-20 18:51:24 +00:00
Docs update, use package version instead of latest, refer to better mariadb image
This commit is contained in:
parent
846b94f7e8
commit
51ef7f3b86
5 changed files with 37 additions and 28 deletions
17
docs/scripts/set-version.sh
Executable file
17
docs/scripts/set-version.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -euf
|
||||
|
||||
# this script accepts a version number as an argument
|
||||
# and replaces {{VERSION}} in src/*.md with the provided version number.
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$DIR/.." || exit 1
|
||||
|
||||
VERSION="$1"
|
||||
# find all .md files in src/ and replace {{VERSION}} with the provided version number
|
||||
find src/ -type f -name "*.md" -exec sed -i "s/{{VERSION}}/$VERSION/g" {} \;
|
||||
Loading…
Add table
Add a link
Reference in a new issue