Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-nquakesv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Grewe
docker-nquakesv
Commits
c1779996
Commit
c1779996
authored
8 years ago
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
Fix variables in start.sh
parent
7cebdc3b
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
start.sh
+7
-6
7 additions, 6 deletions
start.sh
with
7 additions
and
6 deletions
start.sh
+
7
−
6
View file @
c1779996
...
@@ -2,24 +2,24 @@
...
@@ -2,24 +2,24 @@
dir
=
'/nquakesv'
dir
=
'/nquakesv'
remote_ip
=
$(
curl http://myip.dnsomatic.com
)
REMOTE_IP
=
$(
curl http://myip.dnsomatic.com
)
[
-n
"
$
hostdns
"
]
||
hostdns
=
$remote_ip
[
-n
"
$
HOSTDNS
"
]
||
HOSTDNS
=
${
REMOTE_IP
}
echo
"===== nQuakeSV Configuration ====="
echo
"===== nQuakeSV Configuration ====="
echo
"Setting server name:
${
HOSTNAME
}
"
echo
"Setting server name:
${
HOSTNAME
}
"
echo
$
hostname
>
~/.nquakesv/hostname
echo
$
{
HOSTNAME
}
>
~/.nquakesv/hostname
/bin/sed
-i
"s/hostname .*/hostname
${
HOSTNAME
}
/"
ktx/port1.cfg
/bin/sed
-i
"s/hostname .*/hostname
${
HOSTNAME
}
/"
ktx/port1.cfg
/bin/sed
-i
"s/.*k_motd1 .*/set k_motd1
\"
${
HOSTNAME
}
\"
/"
ktx/port1.cfg
/bin/sed
-i
"s/.*k_motd1 .*/set k_motd1
\"
${
HOSTNAME
}
\"
/"
ktx/port1.cfg
/bin/sed
-i
"s/hostname .*/hostname
${
HOSTNAME
}
/"
qtv/qtv.cfg
/bin/sed
-i
"s/hostname .*/hostname
${
HOSTNAME
}
/"
qtv/qtv.cfg
/bin/sed
-i
"s/set hostname .*/set hostname
\"
${
HOSTNAME
}
\"
/"
qwfwd/qwfwd.cfg
/bin/sed
-i
"s/set hostname .*/set hostname
\"
${
HOSTNAME
}
\"
/"
qwfwd/qwfwd.cfg
echo
"Setting server hostname:
${
HOSTDNS
}
"
echo
"Setting server hostname:
${
HOSTDNS
}
"
echo
$
hostdns
>
~/.nquakesv/hostdns
echo
$
{
HOSTDNS
}
>
~/.nquakesv/hostdns
echo
$
remote_ip
>
~/.nquakesv/ip
echo
$
{
REMOTE_IP
}
>
~/.nquakesv/ip
#/bin/sed -i "s/qtv .*/qtv ${HOSTDNS}:28501/" qtv/qtv.cfg
#/bin/sed -i "s/qtv .*/qtv ${HOSTDNS}:28501/" qtv/qtv.cfg
/bin/sed
-i
"s/qtv .*/qtv 127.0.0.1:28501/"
qtv/qtv.cfg
/bin/sed
-i
"s/qtv .*/qtv 127.0.0.1:28501/"
qtv/qtv.cfg
/bin/sed
-i
"s/sv_serverip .*/sv_serverip
\"
${
remote_ip
}
:28501
\"
/"
ktx/port1.cfg
/bin/sed
-i
"s/sv_serverip .*/sv_serverip
\"
${
HOSTDNS
}
:28501
\"
/"
ktx/port1.cfg
echo
"Setting server admin:
${
ADMINNAME
}
<
${
ADMINEMAIL
}
>"
echo
"Setting server admin:
${
ADMINNAME
}
<
${
ADMINEMAIL
}
>"
echo
"
${
ADMINNAME
}
<
${
ADMINEMAIL
}
>"
>
~/.nquakesv/admin
echo
"
${
ADMINNAME
}
<
${
ADMINEMAIL
}
>"
>
~/.nquakesv/admin
...
@@ -49,3 +49,4 @@ echo "=================================="
...
@@ -49,3 +49,4 @@ echo "=================================="
/usr/bin/supervisorctl start nquakesv:
*
/usr/bin/supervisorctl start nquakesv:
*
exit
0
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment