Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FELINN core
tools
nginx new host
Commits
8e39596c
Commit
8e39596c
authored
Jan 04, 2019
by
f00wl
🦉
Browse files
fix sed regex
parent
59a69b2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
nginx-new-host.sh
View file @
8e39596c
...
...
@@ -14,7 +14,7 @@ check_deps() {
get_fill_template
()
{
curl
-sL
https://git.felinn.org/FELINN/tools/nginx-new-host/raw/master/template.conf
-o
${
NEW_NGINX_CONF_FILE
}
sed
-i
's/{{ hosname }}/${NEW_HOSTNAME}/g'
${
NEW_NGINX_CONF_FILE
}
sed
-i
's/{{ hos
t
name }}/${NEW_HOSTNAME}/g'
${
NEW_NGINX_CONF_FILE
}
sed
-i
's/{{ ip }}/${NEW_IP}/g'
${
NEW_NGINX_CONF_FILE
}
sed
-i
's/{{ port }}/${NEW_PORT}/g'
${
NEW_NGINX_CONF_FILE
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment