Browse Source

Merge branch 'develop' into feature/iosoccer

pull/2164/head
Daniel Gibbs 6 years ago
parent
commit
d5370ac5bf
  1. 12
      .github/ISSUE_TEMPLATE/bug_report.md
  2. 13
      .github/ISSUE_TEMPLATE/feature_request.md
  3. 14
      .github/ISSUE_TEMPLATE/new-server-request.md
  4. 16
      .github/lock.yml
  5. 4
      .github/no-response.yml
  6. 4
      .github/potential-duplicates.yml
  7. 6
      .github/request-info.yml
  8. 6
      .github/welcome.yml
  9. 10
      CONTRIBUTING.md
  10. 22
      PULL_REQUEST_TEMPLATE.md
  11. 29
      README.md
  12. 8
      lgsm/functions/info_distro.sh
  13. 6
      lgsm/functions/info_messages.sh

12
.github/ISSUE_TEMPLATE/bug_report.md

@ -17,19 +17,19 @@ Issues here are **NOT** for:
* Dedicated server issues (e.g Ubuntu, CentOS) * Dedicated server issues (e.g Ubuntu, CentOS)
* Anything not directly related to LinuxGSM development * Anything not directly related to LinuxGSM development
Any general support issues on GitHub will be closed. Any general support issues on GitHub will be migrated to [LinuxGSM-Support](https://github.com/GameServerManagers/LinuxGSM-Support).
*Please use the template below* *Please use the template below*
## User Story ## User Story
As a \[user description], I want \[desired action] so that \[desired outcome] As a [user description], I want [desired action] so that [desired outcome].
## Basic info ## Basic info
* Distro \[Ubuntu 18.04] * Distro: [Ubuntu 18.04]
* Game \[Garry's Mod] * Game: [Garry's Mod]
* Feature \[Monitor] * Command: [Monitor]
## Further Information ## Further Information
@ -44,5 +44,3 @@ Steps to reproduce the behaviour:
4. See error 4. See error
## Expected behaviour ## Expected behaviour
A what you expected to happen.

13
.github/ISSUE_TEMPLATE/feature_request.md

@ -12,25 +12,24 @@ Issues here are **ONLY** for:
* code contributions * code contributions
Issues here are **NOT** for: Issues here are **NOT** for:
* General support * General support
* Specific game server issues (e.g CS:GO, TF2) * Specific game server issues (e.g CS:GO, TF2)
* Dedicated server issues (e.g Ubuntu, CentOS) * Dedicated server issues (e.g Ubuntu, CentOS)
* Anything not directly related to LinuxGSM development * Anything not directly related to LinuxGSM development
Any general support issues on GitHub will be closed. Any general support issues on GitHub will be migrated to [LinuxGSM-Support](https://github.com/GameServerManagers/LinuxGSM-Support).
*Please use the template below* *Please use the template below*
## User Story ## User Story
As a \[user description], I want \[desired action] so that \[desired outcome] As a [user description], I want [desired action] so that [desired outcome].
## Basic info ## Basic info
* Distro \[Ubuntu 18.04] * Distro: [Ubuntu 18.04]
* Game \[Garry's Mod] * Game: [Garry's Mod]
* Feature \[Monitor] * Command: [Monitor]
## Further Information ## Further Information

14
.github/ISSUE_TEMPLATE/new-server-request.md

@ -4,7 +4,9 @@ about: Suggest a new game server to be added
--- ---
## Which game server would you like adding? ## What game server would you like adding?
[game server]
## Can you link to any tutorials or guides? ## Can you link to any tutorials or guides?
@ -12,8 +14,16 @@ Provide any useful documentation or resources that might help.
## Is the server on Steam? ## Is the server on Steam?
If yes Use SteamDB to get the appid. (https://steamdb.info) * [ ] Yes
* [ ] No
If yes Use SteamDB to get the appid. (https://steamdb.info).
[appid]
## Is the server supported on Linux? ## Is the server supported on Linux?
We only support Linux servers and do not support Wine. We only support Linux servers and do not support Wine.
* [ ] Yes
* [ ] No

16
.github/lock.yml

@ -1,9 +1,13 @@
# Configuration for lock-threads - https://github.com/dessant/lock-threads # Configuration for Lock Threads - https://github.com/dessant/lock-threads
# Number of days of inactivity before a closed issue or pull request is locked # Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 365 daysUntilLock: 365
# Issues and pull requests with these labels will not be locked. Set to `[]` to disable # Skip issues and pull requests created before a given timestamp. Timestamp must
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
skipCreatedBefore: false
# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
exemptLabels: [] exemptLabels: []
# Label to add before locking, such as `outdated`. Set to `false` to disable # Label to add before locking, such as `outdated`. Set to `false` to disable
@ -15,6 +19,9 @@ lockComment: >
any recent activity after it was closed. Please open a new issue for any recent activity after it was closed. Please open a new issue for
related bugs. related bugs.
# Assign `resolved` as the reason for locking. Set to `false` to disable
setLockReason: false
# Limit to only `issues` or `pulls` # Limit to only `issues` or `pulls`
# only: issues # only: issues
@ -25,4 +32,7 @@ lockComment: >
# lockLabel: outdated # lockLabel: outdated
# pulls: # pulls:
# daysUntilLock: 30 # daysUntilLock: 30
# Repository to extend settings from
# _extends: repo

4
.github/no-response.yml

@ -1,9 +1,9 @@
# Configuration for probot-no-response - https://github.com/probot/no-response # Configuration for probot-no-response - https://github.com/probot/no-response
# Number of days of inactivity before an Issue is closed for lack of response # Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 30 daysUntilClose: 60
# Label requiring a response # Label requiring a response
responseRequiredLabel: "Status: waiting response" responseRequiredLabel: "needs more info"
# Comment to post when closing an Issue for lack of response. Set to `false` to disable # Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: > closeComment: >
This issue has been automatically closed because there has been no response This issue has been automatically closed because there has been no response

4
.github/potential-duplicates.yml

@ -1,6 +1,6 @@
# Label name and color to set, when potential duplicates are detected # Label name and color to set, when potential duplicates are detected
issueLabel: "Type: potential duplicate" issueLabel: "duplicate"
labelColor: D2DAE1 labelColor: 579e01
# If similarity is higher than this threshold, issue will be marked as duplicate # If similarity is higher than this threshold, issue will be marked as duplicate
threshold: 0.60 threshold: 0.60

6
.github/request-info.yml

@ -2,7 +2,9 @@
# *Required* Comment to reply with # *Required* Comment to reply with
requestInfoReplyComment: > requestInfoReplyComment: >
We require more information for this issue. ![More Data required](https://i.imgur.com/yS9cecv.png)
More data is required to assist with this issue
or issue template was not used correctly.
https://linuxgsm.com/support/#guide https://linuxgsm.com/support/#guide
# *OPTIONAL* default titles to check against for lack of descriptiveness # *OPTIONAL* default titles to check against for lack of descriptiveness
@ -12,4 +14,4 @@ requestInfoReplyComment: >
# - updates # - updates
# *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given # *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given
requestInfoLabelToAdd: "Status: needs more info" requestInfoLabelToAdd: "needs more info"

6
.github/welcome.yml

@ -4,18 +4,18 @@
# Comment to be posted to on first time issues # Comment to be posted to on first time issues
newIssueWelcomeComment: > newIssueWelcomeComment: >
Thanks for opening your first issue. Be sure to follow the issue template! and guide for posting. https://linuxgsm.com/support/#guide Thank you for opening your first issue. Be sure to follow the issue template! and guide for posting. https://linuxgsm.com/support/#guide
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome # Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
# Comment to be posted to on PRs from first time contributors in your repository # Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: > newPRWelcomeComment: >
Thanks for opening this pull request! Please check out our contributing guidelines. Thank you for opening this pull request! Please check out our contributing guidelines.
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge # Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
# Comment to be posted to on pull requests merged by a first time user # Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: > firstPRMergeComment: >
Congrats on merging your first pull request! Thank you for supporting LinuxGSM! Congratulations on merging your first pull request! Thank you for supporting LinuxGSM!
# It is recommend to include as many gifs and emojis as possible # It is recommend to include as many gifs and emojis as possible

10
CONTRIBUTING.md

@ -9,15 +9,13 @@ Before working on a project we recommend that you create a issue in regards to t
Here are some important resources: Here are some important resources:
* [Issues Page](https://github.com/GameServerManagers/LinuxGSM/issues) provides a list of areas that could use some work, * [Issues Page](https://github.com/GameServerManagers/LinuxGSM/issues) provides a list of areas that could use some work,
* [Developing LinuxGSM](https://docs.linuxgsm.com/developers) gives a detailed guide on developing LGSM, * [Developer Wiki](https://github.com/GameServerManagers/LinuxGSM/wiki) gives a detailed guide on developing LGSM,
* [LinuxGSM Exit Codes](https://docs.linuxgsm.com/developers/linuxgsm-exit-codes) describes and gives an explanation for exit codes,
* [Branching](https://docs.linuxgsm.com/developers/branching) is our final guide to submitting changes.
## Testing ## Testing
Please make sure all the code you write is working properly **before** you create a pull request. Information on debugging can be found in the following document: Please make sure all the code you write is working properly **before** you create a pull request. Information on debugging can be found in the following document:
[Developer Commands](https://docs.linuxgsm.com/developers/developer-commands)
[Debugging your code](https://docs.linuxgsm.com/developers/developing-lgsm#testing-and-debugging-your-code) [Developer Commands](https://github.com/GameServerManagers/LinuxGSM/wiki/Developer-Commands)
## Submitting changes ## Submitting changes
@ -35,4 +33,4 @@ This will help us in understanding your code and determining where problems may
Start reading our code and you'll get the hang of it. Explore how functions are organized and you'll see how we strive for readable code. Start reading our code and you'll get the hang of it. Explore how functions are organized and you'll see how we strive for readable code.
Please give the following document a read and adjust your code according to its specifications. Please give the following document a read and adjust your code according to its specifications.
[Syntax & Coding Conventions](https://docs.linuxgsm.com/developers/syntax-and-conventions) [Syntax & Coding Conventions](https://github.com/GameServerManagers/LinuxGSM/wiki/Syntax-and-Conventions)

22
PULL_REQUEST_TEMPLATE.md

@ -0,0 +1,22 @@
# Description
Please include a summary of the change and which issue is fixed.
Fixes #\[issue]
## Type of change
* [ ] Bug fix (change which fixes an issue)
* [ ] New feature (change which adds functionality)
* [ ] New Server (new server added)
* [ ] Refactor (restructures existing code)
* [ ] This change requires a documentation update
## Checklist
* [ ] My code follows the style guidelines of this project
* [ ] This pull request links to an issue
* [ ] This pull request uses the `develop` branch as its base
* [ ] I have performed a self-review of my own code
* [ ] I have commented my code, particularly in hard to understand areas
* [ ] I have made corresponding changes to the documentation if required

29
README.md

File diff suppressed because one or more lines are too long

8
lgsm/functions/info_distro.sh

@ -89,8 +89,10 @@ days=$(( uptime/60/60/24 ))
## Average server load ## Average server load
load=$(uptime|awk -F 'load average: ' '{ print $2 }') load=$(uptime|awk -F 'load average: ' '{ print $2 }')
## Memory information ## CPU information
cpumodel=$(awk -F: '/model name/ {name=$2} END {print name}' /proc/cpuinfo | sed 's/^[ \t]*//;s/[ \t]*$//')
cpucores=$(awk -F: '/model name/ {core++} END {print core}' /proc/cpuinfo)
cpufreuency=$(awk -F: ' /cpu MHz/ {freq=$2} END {print freq " MHz"}' /proc/cpuinfo | sed 's/^[ \t]*//;s/[ \t]*$//')
## Memory information ## Memory information
# Available RAM and swap. # Available RAM and swap.
@ -232,4 +234,4 @@ if [ ! "$(command -v jq 2>/dev/null)" ]; then
fi fi
fi fi
fi fi
fi fi

6
lgsm/functions/info_messages.sh

@ -74,6 +74,12 @@ fn_info_message_performance(){
echo -e "${blue}Avg Load:\t${default}${load}" echo -e "${blue}Avg Load:\t${default}${load}"
} | column -s $'\t' -t } | column -s $'\t' -t
echo -e "" echo -e ""
{
echo -e "${blue}CPU Model:\t${default}${cpumodel}"
echo -e "${blue}CPU Cores:\t${default}${cpucores}"
echo -e "${blue}CPU Frequency:\t${default}${cpufreuency}"
} | column -s $'\t' -t
echo -e ""
{ {
echo -e "${blue}Mem:\t${blue}total\tused\tfree\tcached\tavailable${default}" echo -e "${blue}Mem:\t${blue}total\tused\tfree\tcached\tavailable${default}"
echo -e "${blue}Physical:\t${default}${physmemtotal}\t${physmemused}\t${physmemfree}\t${physmemcached}\t${physmemavailable}${default}" echo -e "${blue}Physical:\t${default}${physmemtotal}\t${physmemused}\t${physmemfree}\t${physmemcached}\t${physmemavailable}${default}"

Loading…
Cancel
Save