Squad -- Copyright Removal

This commit is contained in:
Price Hiller 2021-08-04 21:17:20 -05:00
parent 1bdb2ad075
commit b3509ed6ea
20 changed files with 26 additions and 131 deletions

View File

@ -1,11 +1,6 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
set -e

View File

@ -1,11 +1,6 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
# To add additional ports for Arma you need to have 5 ports open as a range
# Arma offsets from the first port and increments upwards until 5 ports are open

View File

@ -1,11 +1,6 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
usage() {
printf "%s\n" \

View File

@ -1,11 +1,6 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
set +e

View File

@ -1,12 +1,5 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
set -e
usage() {

View File

@ -1,13 +1,5 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
### Minecraft Ports ###
# Game ports 12000 - 12099
# Query ports 12100 - 12199

View File

@ -1,11 +1,5 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
### CONSTANTS ###

View File

@ -1,11 +1,6 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
set -e

View File

@ -1,12 +1,5 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
set -e
usage() {

View File

@ -1,13 +1,6 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
echo_rgb() {
# Echo a colored string to the terminal based on rgb values
#

View File

@ -1,11 +1,5 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
firewall-cmd --zone=public --add-port=13000-13299/tcp --permanent
firewall-cmd --zone=public --add-port=13000-13299/udp --permanent
firewall-cmd --reload

View File

@ -1,12 +1,5 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
### PORTS ###
# GAME PORT RANGE: 13000-13099
# QUERY PORT RANGE: 13100-13199
@ -295,12 +288,17 @@ log "info" "Updating $(important "Squad-Server-${server_id}")'s RCON config"
# Update the password, since sed is PIA in regards to base64 & raw strings we fix this one up line by line
while read -r line
do
# Overwrites the password
echo "${line//Password=*/Password="${rcon_password}"}"
# Overwrites the rcon port
echo "${line//Port=*/Port="${rcon_port}"}"
if [[ "${line}" == Password=* ]]; then
# Overwrites the password
echo "${line//Password=*/Password="${rcon_password}"}"
elif [[ "${line}" == Port=* ]]; then
# Overwrites the rcon port
echo "${line//Port=*/Port="${rcon_port}"}"
else
echo "${line}"
fi
done < "${squad_rcon_config}" > "rcon.temp" && mv "rcon.temp" "${squad_rcon_config}"
log "info" "Successfully updated RCON config"
@ -315,8 +313,8 @@ log "info" \
-LOG")"
# Kick off a new tmux session containing the Squad Server
tmux new-session -d -s "Squad-Server-${server_id}" \
"${squad_start_script}" -Port="${game_port}" -QueryPort="${query_port}" -FIXEDMAXTICKRATE="${TICK_RATE}" \
echo | tmux new-session -d -s "Squad-Server-${server_id}" \
"${squad_start_script}" -Port="${game_port}" -QueryPort="${query_port}" -FIXEDMAXTICKRATE="${TICK_RATE}" \
-USEALLAVILABLECORES -LOG &&
log "info" \
"Started Squad-Server-${server_id} with the following ports:

View File

@ -1,12 +1,5 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
set -e
usage() {

View File

@ -5,15 +5,15 @@ set -e
# Remote System
REMOTE_SSH_SERVER=Kansas-5800X
REMOTE_HOST_NAME=208.110.85.242
REMOTE_USER_TO_CREATE=Arma
REMOTE_USER_TO_CREATE=Squad
# Local System
SSH_FILE_DIRECTORY=~/.ssh
SSH_FILE_NAME=${REMOTE_USER_TO_CREATE}-id_edcsa
SSH_FILE_NAME=${REMOTE_USER_TO_CREATE}-id_ed25519
SSH_FILE=${SSH_FILE_DIRECTORY}/${SSH_FILE_NAME}
SSH_HOST=Kansas-5800X
ssh-keygen -b 521 -t ECDSA -f ${SSH_FILE} -N ""
ssh-keygen -b 521 -t ed25519 -f ${SSH_FILE} -N ""
chmod 600 ${SSH_FILE}
PUB_KEY_CONTENTS=$(cat ${SSH_FILE}.pub)

View File

@ -1,11 +1,6 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
usage() {
# Print out usage instructions for the local script

View File

@ -1,12 +1,7 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
check_root() {
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)

View File

@ -1,11 +1,6 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
confirmation() {
# Receive confirmation from user as y, Y, n, or N

View File

@ -1,11 +1,6 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
echo_rgb() {
# Echo a colored string to the terminal based on rgb values

View File

@ -1,11 +1,6 @@
#!/bin/bash --posix
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
set -e

View File

@ -1,11 +1,6 @@
#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
rgb () {
# Echo a color printf to the terminal awaiting an actual echo to be colored