Skip to content

Commit 76044e4

Browse files
committed
Add update nginx template
1 parent 2b8bf86 commit 76044e4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

bin/update-nginx-template.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
#
4+
# This script updates the branch name to 'main'
5+
#
6+
# Source: https://github.com/evertramos/nginx-proxy-automation
7+
#
8+
9+
# Get the script name and its real file path
10+
SCRIPT_PATH="$(dirname "$(readlink -f "$0")")"
11+
SCRIPT_NAME="${0##*/}"
12+
CURRENT_PATH=$(pwd)
13+
14+
cd "${SCRIPT_PATH}/../"
15+
16+
# Update template with the latest version of nginx template
17+
curl https://raw.githubusercontent.com/jwilder/nginx-proxy/master/nginx.tmpl > nginx.tmpl
18+
19+
cd - 1>/dev/null 2>/dev/null
20+
21+
exit 0
22+

0 commit comments

Comments
 (0)