-
-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
547 changed files
with
2,461 additions
and
28,341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
cd "lgsm/data" || exit | ||
|
||
echo "" | ||
echo "Checking that all the game servers listed in serverlist.csv have a shortname-icon.png file" | ||
for shortname in $(tail -n +2 serverlist.csv | cut -d ',' -f1); do | ||
# check if $shortname-icon.png exists | ||
if [ ! -f "gameicons/${shortname}-icon.png" ]; then | ||
echo "ERROR: gameicons/${shortname}-icon.png does not exist" | ||
exitcode=1 | ||
else | ||
echo "OK: gameicons/${shortname}-icon.png exists" | ||
fi | ||
done | ||
|
||
echo "" | ||
echo "Checking if an unexpected gameicon exists" | ||
for gameicon in $(ls -1 gameicons); do | ||
# check if $gameicon is in serverlist.csv | ||
if ! grep -q "${gameicon%-icon.png}" serverlist.csv; then | ||
echo "ERROR: gameicon ${gameicon} is not in serverlist.csv" | ||
exitcode=1 | ||
else | ||
echo "OK: gameicon ${gameicon} is in serverlist.csv" | ||
fi | ||
done | ||
|
||
echo "" | ||
echo "Checking that the number of gameicons matches the number of servers in serverlist.csv" | ||
gameiconcount="$(ls -1 gameicons | wc -l)" | ||
serverlistcount="$(tail -n +2 serverlist.csv | wc -l)" | ||
if [ "${gameiconcount}" -ne "${serverlistcount}" ]; then | ||
echo "ERROR: game icons (${gameiconcount}) does not match serverlist.csv ($serverlistcount)" | ||
exitcode=1 | ||
else | ||
echo "OK: gameiconcount ($gameiconcount) matches serverlistcount ($serverlistcount)" | ||
fi | ||
|
||
exit ${exitcode} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["prettier-plugin-sh"] | ||
"plugins": ["prettier-plugin-sh"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,9 @@ displayip="" | |
# More info | https://docs.linuxgsm.com/alerts#more-info | ||
postalert="off" | ||
|
||
# Alert on Start/Stop/Restart | ||
statusalert="off" | ||
|
||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord | ||
discordalert="off" | ||
discordwebhook="webhook" | ||
|
@@ -51,14 +54,6 @@ iftttalert="off" | |
ifttttoken="accesstoken" | ||
iftttevent="linuxgsm_alert" | ||
|
||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun | ||
mailgunalert="off" | ||
mailgunapiregion="us" | ||
mailguntoken="accesstoken" | ||
mailgundomain="example.com" | ||
mailgunemailfrom="[email protected]" | ||
mailgunemail="[email protected]" | ||
|
||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet | ||
pushbulletalert="off" | ||
pushbullettoken="accesstoken" | ||
|
@@ -72,7 +67,6 @@ pushoveruserkey="userkey" | |
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat | ||
rocketchatalert="off" | ||
rocketchatwebhook="webhook" | ||
rocketchattoken="" | ||
|
||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack | ||
slackalert="off" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,9 @@ displayip="" | |
# More info | https://docs.linuxgsm.com/alerts#more-info | ||
postalert="off" | ||
|
||
# Alert on Start/Stop/Restart | ||
statusalert="off" | ||
|
||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord | ||
discordalert="off" | ||
discordwebhook="webhook" | ||
|
@@ -59,14 +62,6 @@ iftttalert="off" | |
ifttttoken="accesstoken" | ||
iftttevent="linuxgsm_alert" | ||
|
||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun | ||
mailgunalert="off" | ||
mailgunapiregion="us" | ||
mailguntoken="accesstoken" | ||
mailgundomain="example.com" | ||
mailgunemailfrom="[email protected]" | ||
mailgunemail="[email protected]" | ||
|
||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet | ||
pushbulletalert="off" | ||
pushbullettoken="accesstoken" | ||
|
@@ -80,7 +75,6 @@ pushoveruserkey="userkey" | |
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat | ||
rocketchatalert="off" | ||
rocketchatwebhook="webhook" | ||
rocketchattoken="" | ||
|
||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack | ||
slackalert="off" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,9 @@ displayip="" | |
# More info | https://docs.linuxgsm.com/alerts#more-info | ||
postalert="off" | ||
|
||
# Alert on Start/Stop/Restart | ||
statusalert="off" | ||
|
||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord | ||
discordalert="off" | ||
discordwebhook="webhook" | ||
|
@@ -54,14 +57,6 @@ iftttalert="off" | |
ifttttoken="accesstoken" | ||
iftttevent="linuxgsm_alert" | ||
|
||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun | ||
mailgunalert="off" | ||
mailgunapiregion="us" | ||
mailguntoken="accesstoken" | ||
mailgundomain="example.com" | ||
mailgunemailfrom="[email protected]" | ||
mailgunemail="[email protected]" | ||
|
||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet | ||
pushbulletalert="off" | ||
pushbullettoken="accesstoken" | ||
|
@@ -75,7 +70,6 @@ pushoveruserkey="userkey" | |
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat | ||
rocketchatalert="off" | ||
rocketchatwebhook="webhook" | ||
rocketchattoken="" | ||
|
||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack | ||
slackalert="off" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,9 @@ displayip="" | |
# More info | https://docs.linuxgsm.com/alerts#more-info | ||
postalert="off" | ||
|
||
# Alert on Start/Stop/Restart | ||
statusalert="off" | ||
|
||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord | ||
discordalert="off" | ||
discordwebhook="webhook" | ||
|
@@ -57,14 +60,6 @@ iftttalert="off" | |
ifttttoken="accesstoken" | ||
iftttevent="linuxgsm_alert" | ||
|
||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun | ||
mailgunalert="off" | ||
mailgunapiregion="us" | ||
mailguntoken="accesstoken" | ||
mailgundomain="example.com" | ||
mailgunemailfrom="[email protected]" | ||
mailgunemail="[email protected]" | ||
|
||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet | ||
pushbulletalert="off" | ||
pushbullettoken="accesstoken" | ||
|
@@ -78,7 +73,6 @@ pushoveruserkey="userkey" | |
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat | ||
rocketchatalert="off" | ||
rocketchatwebhook="webhook" | ||
rocketchattoken="" | ||
|
||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack | ||
slackalert="off" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,9 @@ displayip="" | |
# More info | https://docs.linuxgsm.com/alerts#more-info | ||
postalert="off" | ||
|
||
# Alert on Start/Stop/Restart | ||
statusalert="off" | ||
|
||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord | ||
discordalert="off" | ||
discordwebhook="webhook" | ||
|
@@ -70,14 +73,6 @@ iftttalert="off" | |
ifttttoken="accesstoken" | ||
iftttevent="linuxgsm_alert" | ||
|
||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun | ||
mailgunalert="off" | ||
mailgunapiregion="us" | ||
mailguntoken="accesstoken" | ||
mailgundomain="example.com" | ||
mailgunemailfrom="[email protected]" | ||
mailgunemail="[email protected]" | ||
|
||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet | ||
pushbulletalert="off" | ||
pushbullettoken="accesstoken" | ||
|
@@ -91,7 +86,6 @@ pushoveruserkey="userkey" | |
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat | ||
rocketchatalert="off" | ||
rocketchatwebhook="webhook" | ||
rocketchattoken="" | ||
|
||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack | ||
slackalert="off" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,9 @@ displayip="" | |
# More info | https://docs.linuxgsm.com/alerts#more-info | ||
postalert="off" | ||
|
||
# Alert on Start/Stop/Restart | ||
statusalert="off" | ||
|
||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord | ||
discordalert="off" | ||
discordwebhook="webhook" | ||
|
@@ -55,14 +58,6 @@ iftttalert="off" | |
ifttttoken="accesstoken" | ||
iftttevent="linuxgsm_alert" | ||
|
||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun | ||
mailgunalert="off" | ||
mailgunapiregion="us" | ||
mailguntoken="accesstoken" | ||
mailgundomain="example.com" | ||
mailgunemailfrom="[email protected]" | ||
mailgunemail="[email protected]" | ||
|
||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet | ||
pushbulletalert="off" | ||
pushbullettoken="accesstoken" | ||
|
@@ -76,7 +71,6 @@ pushoveruserkey="userkey" | |
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat | ||
rocketchatalert="off" | ||
rocketchatwebhook="webhook" | ||
rocketchattoken="" | ||
|
||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack | ||
slackalert="off" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ displayip="" | |
# More info | https://docs.linuxgsm.com/alerts#more-info | ||
postalert="off" | ||
|
||
# Alert on Start/Stop/Restart | ||
statusalert="off" | ||
|
||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord | ||
discordalert="off" | ||
discordwebhook="webhook" | ||
|
@@ -47,14 +50,6 @@ iftttalert="off" | |
ifttttoken="accesstoken" | ||
iftttevent="linuxgsm_alert" | ||
|
||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun | ||
mailgunalert="off" | ||
mailgunapiregion="us" | ||
mailguntoken="accesstoken" | ||
mailgundomain="example.com" | ||
mailgunemailfrom="[email protected]" | ||
mailgunemail="[email protected]" | ||
|
||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet | ||
pushbulletalert="off" | ||
pushbullettoken="accesstoken" | ||
|
@@ -68,7 +63,6 @@ pushoveruserkey="userkey" | |
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat | ||
rocketchatalert="off" | ||
rocketchatwebhook="webhook" | ||
rocketchattoken="" | ||
|
||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack | ||
slackalert="off" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ displayip="" | |
# More info | https://docs.linuxgsm.com/alerts#more-info | ||
postalert="off" | ||
|
||
# Alert on Start/Stop/Restart | ||
statusalert="off" | ||
|
||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord | ||
discordalert="off" | ||
discordwebhook="webhook" | ||
|
@@ -47,14 +50,6 @@ iftttalert="off" | |
ifttttoken="accesstoken" | ||
iftttevent="linuxgsm_alert" | ||
|
||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun | ||
mailgunalert="off" | ||
mailgunapiregion="us" | ||
mailguntoken="accesstoken" | ||
mailgundomain="example.com" | ||
mailgunemailfrom="[email protected]" | ||
mailgunemail="[email protected]" | ||
|
||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet | ||
pushbulletalert="off" | ||
pushbullettoken="accesstoken" | ||
|
@@ -68,7 +63,6 @@ pushoveruserkey="userkey" | |
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat | ||
rocketchatalert="off" | ||
rocketchatwebhook="webhook" | ||
rocketchattoken="" | ||
|
||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack | ||
slackalert="off" | ||
|
Oops, something went wrong.