Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Palworld RCON Sidecar
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Palworld
Palworld RCON Sidecar
Commits
6026790a
Verified
Commit
6026790a
authored
Mar 3, 2024
by
Bell
Browse files
Options
Downloads
Patches
Plain Diff
feat: 동일 상태여도 조회 진행 여부 파악을 위해 . 출력하도록 수정
parent
fea783d4
Loading
Loading
No related merge requests found
Pipeline
#2508
passed
Mar 3, 2024
Stage: build
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/entrypoint.sh
+1
-10
1 addition, 10 deletions
scripts/entrypoint.sh
scripts/show_players.sh
+2
-1
2 additions, 1 deletion
scripts/show_players.sh
with
3 additions
and
11 deletions
scripts/entrypoint.sh
+
1
−
10
View file @
6026790a
#!/bin/sh
before_players
=
""
same_count
=
0
print_players
()
{
PLAYERS
=
$(
./show_players.sh
)
...
...
@@ -11,17 +10,9 @@ print_players() {
CURRENT_DATE
=
$(
TZ
=
Asia/Seoul
date
"+%y-%m-%d %H:%M:%S"
)
echo
"[KST
$CURRENT_DATE
] PLAYERS =
$PLAYERS
"
same_count
=
0
before_players
=
"
$PLAYERS
"
else
# NOTE: 30초간 접속자 동일할 시 점 하나 찍음
if
[
"
$same_count
"
-gt
6
]
;
then
echo
-n
"."
same_count
=
0
fi
same_count
=
$((
same_count
+
1
))
fi
}
...
...
This diff is collapsed.
Click to expand it.
scripts/show_players.sh
+
2
−
1
View file @
6026790a
#!/bin/sh
/rcon ShowPlayers |
sed
"1d;/cli: execute: auth: rcon:/d"
|
cut
-d
','
-f1
|
sed
-n
"s/.*/'&'/;1{h;d};H;
\$
{x;s/
\n
/,/g;p;q}"
PLAYERS
=
$(
/rcon ShowPlayers |
sed
"1d;/cli: execute: auth: rcon:/d"
|
cut
-d
','
-f1
|
sed
-n
"s/.*/'&'/;1{h;d};H;
\$
{x;s/
\n
/,/g;p;q}"
)
echo
"
$PLAYERS
"
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