Browse Source
- Removed the following files: - `tests/tests_defaultcfg/defaultcfg_0.txt` - `tests/tests_defaultcfg/defaultcfg_1.txt` - `tests/tests_defaultcfg/tests_defaultcfg.sh` - `tests/tests_fctrserver.sh` These files were no longer needed and have been deleted. refactor: remove unused code - Removed the following files: - `tests/tests_defaultcfg/defaultcfg_0.txt` - `tests/tests_defaultcfg/defaultcfg_1.txt` - `tests/tests_defaultcfg/tests_defaultcfg.sh` - `tests/tests_fctrserver.sh` These files were no longer needed and have been deleted.pull/4338/head
7 changed files with 0 additions and 5134 deletions
@ -1,63 +0,0 @@ |
|||
stats |
|||
displayip |
|||
postalert |
|||
discordalert |
|||
discordwebhook |
|||
emailalert |
|||
email |
|||
emailfrom |
|||
iftttalert |
|||
ifttttoken |
|||
iftttevent |
|||
mailgunalert |
|||
mailguntoken |
|||
mailgundomain |
|||
mailgunemailfrom |
|||
mailgunemail |
|||
pushbulletalert |
|||
pushbullettoken |
|||
channeltag |
|||
rocketchatalert |
|||
rocketchatwebhook |
|||
rocketchattoken |
|||
slackalert |
|||
slackwebhook |
|||
pushoveralert |
|||
pushovertoken |
|||
telegramalert |
|||
telegramtoken |
|||
telegramchatid |
|||
curlcustomstring |
|||
maxbackups |
|||
maxbackupdays |
|||
stoponbackup |
|||
consolelogging |
|||
logdays |
|||
querydelay |
|||
ansi |
|||
sleeptime |
|||
stopmode |
|||
querymode |
|||
querytype |
|||
consoleverbose |
|||
consoleinteract |
|||
gamename |
|||
engine |
|||
glibc |
|||
systemdir |
|||
executabledir |
|||
executable |
|||
servercfgdir |
|||
servercfg |
|||
servercfgdefault |
|||
servercfgfullpath |
|||
backupdir |
|||
logdir |
|||
lgsmlogdir |
|||
consolelogdir |
|||
lgsmlog |
|||
consolelog |
|||
alertlog |
|||
postdetailslog |
|||
lgsmlogdate |
|||
consolelogdate |
@ -1,53 +0,0 @@ |
|||
################################## |
|||
######## Default Settings ######## |
|||
################################## |
|||
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
|||
# Copy settings from here and use them in either: |
|||
# common.cfg - applies settings to every instance. |
|||
# [instance].cfg - applies settings to a specific instance. |
|||
#### Game Server Settings #### |
|||
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
|||
#### LinuxGSM Settings #### |
|||
## Notification Alerts |
|||
# (on|off) |
|||
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
|||
# More info | https://docs.linuxgsm.com/alerts#more-info |
|||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
|||
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
|||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
|||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
|||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
|||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
|||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
|||
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
|||
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help". |
|||
## Backup | https://docs.linuxgsm.com/commands/backup |
|||
## Logging | https://docs.linuxgsm.com/features/logging |
|||
## Monitor | https://docs.linuxgsm.com/commands/monitor |
|||
# Query delay time |
|||
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
|||
#### Advanced Settings #### |
|||
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
|||
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
|||
# 1: tmux kill |
|||
# 2: CTRL+c |
|||
# 3: quit |
|||
# 4: quit 120s |
|||
# 5: stop |
|||
# 6: q |
|||
# 7: exit |
|||
# 8: 7 Days to Die |
|||
# 9: GoldSrc |
|||
# 10: Avorion |
|||
# 11: end |
|||
## Console type |
|||
consoleverbose="" |
|||
consoleinteract="" |
|||
## Game Server Details |
|||
# Do not edit |
|||
#### Directories #### |
|||
# Edit with care |
|||
## Game Server Directories |
|||
## Backup Directory |
|||
## Logging Directories |
|||
## Logs Naming |
@ -1,65 +0,0 @@ |
|||
#!/bin/bash |
|||
echo -e "" |
|||
echo -e "0.1 - Full comparison Output" |
|||
echo -e "==================================================================" |
|||
echo -e "Description:" |
|||
echo -e "test checks that vars present in ALL _default.cfg files are correct." |
|||
echo -e "" |
|||
echo -e "In master config < | > In game config" |
|||
find "lgsm/config-default/config-lgsm/" ! -name '*template.cfg' -name "*.cfg" -type f -print0 \ |
|||
| while IFS= read -r -d $'\0' line; do |
|||
grep "=" "${line}" | cut -f1 -d"=" > defaultcfgtemp.txt |
|||
diffoutput=$(diff tests/tests_defaultcfg/defaultcfg_0.txt defaultcfgtemp.txt) |
|||
if [ "${diffoutput}" ]; then |
|||
echo "File with errors:" |
|||
echo "${line}" |
|||
echo -e "=================================" |
|||
echo -e "In master config < | > In game config" |
|||
echo "${diffoutput}" |
|||
echo "" |
|||
fi |
|||
rm -f defaultcfgtemp.txt |
|||
done |
|||
|
|||
echo -e "" |
|||
echo -e "1.0 - Master Comparison" |
|||
echo -e "==================================================================" |
|||
echo -e "Description:" |
|||
echo -e "test checks that vars present in ALL _default.cfg files are correct." |
|||
echo -e "" |
|||
echo -e "In master config < | > In game config" |
|||
find lgsm/config-default/config-lgsm/ ! -name '*template.cfg' -name "*.cfg" -type f -print0 \ |
|||
| while IFS= read -r -d $'\0' line; do |
|||
grep "=" "${line}" | cut -f1 -d"=" > defaultcfgtemp.txt |
|||
diffoutput=$(diff tests/tests_defaultcfg/defaultcfg_0.txt defaultcfgtemp.txt | grep '^<') |
|||
if [ "${diffoutput}" ]; then |
|||
echo "File with errors:" |
|||
echo "${line}" |
|||
echo -e "=================================" |
|||
echo -e "In master config < | > In game config" |
|||
echo "${diffoutput}" |
|||
echo "" |
|||
fi |
|||
rm -f defaultcfgtemp.txt |
|||
done |
|||
|
|||
echo -e "" |
|||
echo -e "2.0 - Check Comment" |
|||
echo -e "==================================================================" |
|||
echo -e "Description:" |
|||
echo -e "test checks that comments in ALL _default.cfg files are correct." |
|||
echo -e "" |
|||
echo -e "In master config < | > In game config" |
|||
find lgsm/config-default/config-lgsm/ ! -name '*template.cfg' -name "*.cfg" -type f -print0 \ |
|||
| while IFS= read -r -d $'\0' line; do |
|||
grep "#" "${line}" > defaultcfgtemp.txt |
|||
diffoutput=$(diff tests/tests_defaultcfg/defaultcfg_1.txt defaultcfgtemp.txt | grep '^<') |
|||
if [ "${diffoutput}" ]; then |
|||
echo "File with errors:" |
|||
echo "${line}" |
|||
echo -e "=================================" |
|||
echo "${diffoutput}" |
|||
echo "" |
|||
fi |
|||
rm -f defaultcfgtemp.txt |
|||
done |
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
Loading…
Reference in new issue