Squad -- Copyright Removal
This commit is contained in:
parent
1bdb2ad075
commit
b3509ed6ea
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash --posix
|
#!/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
|
set -e
|
||||||
|
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash --posix
|
#!/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
|
# 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
|
# Arma offsets from the first port and increments upwards until 5 ports are open
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash --posix
|
#!/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() {
|
usage() {
|
||||||
printf "%s\n" \
|
printf "%s\n" \
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash --posix
|
#!/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
|
set +e
|
||||||
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
#!/bin/bash --posix
|
#!/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
|
set -e
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
#!/bin/bash --posix
|
#!/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 ###
|
### Minecraft Ports ###
|
||||||
# Game ports 12000 - 12099
|
# Game ports 12000 - 12099
|
||||||
# Query ports 12100 - 12199
|
# Query ports 12100 - 12199
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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 ###
|
### CONSTANTS ###
|
||||||
|
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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
|
set -e
|
||||||
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
#!/bin/bash --posix
|
#!/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
|
set -e
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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_rgb() {
|
||||||
# Echo a colored string to the terminal based on rgb values
|
# Echo a colored string to the terminal based on rgb values
|
||||||
#
|
#
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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/tcp --permanent
|
||||||
|
firewall-cmd --zone=public --add-port=13000-13299/udp --permanent
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
@ -1,12 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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 ###
|
### PORTS ###
|
||||||
# GAME PORT RANGE: 13000-13099
|
# GAME PORT RANGE: 13000-13099
|
||||||
# QUERY PORT RANGE: 13100-13199
|
# 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
|
# 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
|
while read -r line
|
||||||
do
|
do
|
||||||
# Overwrites the password
|
|
||||||
echo "${line//Password=*/Password="${rcon_password}"}"
|
|
||||||
|
|
||||||
# Overwrites the rcon port
|
if [[ "${line}" == Password=* ]]; then
|
||||||
echo "${line//Port=*/Port="${rcon_port}"}"
|
# 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}"
|
done < "${squad_rcon_config}" > "rcon.temp" && mv "rcon.temp" "${squad_rcon_config}"
|
||||||
|
|
||||||
log "info" "Successfully updated RCON config"
|
log "info" "Successfully updated RCON config"
|
||||||
@ -315,8 +313,8 @@ log "info" \
|
|||||||
-LOG")"
|
-LOG")"
|
||||||
|
|
||||||
# Kick off a new tmux session containing the Squad Server
|
# Kick off a new tmux session containing the Squad Server
|
||||||
tmux new-session -d -s "Squad-Server-${server_id}" \
|
echo | tmux new-session -d -s "Squad-Server-${server_id}" \
|
||||||
"${squad_start_script}" -Port="${game_port}" -QueryPort="${query_port}" -FIXEDMAXTICKRATE="${TICK_RATE}" \
|
"${squad_start_script}" -Port="${game_port}" -QueryPort="${query_port}" -FIXEDMAXTICKRATE="${TICK_RATE}" \
|
||||||
-USEALLAVILABLECORES -LOG &&
|
-USEALLAVILABLECORES -LOG &&
|
||||||
log "info" \
|
log "info" \
|
||||||
"Started Squad-Server-${server_id} with the following ports:
|
"Started Squad-Server-${server_id} with the following ports:
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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
|
set -e
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
@ -5,15 +5,15 @@ set -e
|
|||||||
# Remote System
|
# Remote System
|
||||||
REMOTE_SSH_SERVER=Kansas-5800X
|
REMOTE_SSH_SERVER=Kansas-5800X
|
||||||
REMOTE_HOST_NAME=208.110.85.242
|
REMOTE_HOST_NAME=208.110.85.242
|
||||||
REMOTE_USER_TO_CREATE=Arma
|
REMOTE_USER_TO_CREATE=Squad
|
||||||
|
|
||||||
# Local System
|
# Local System
|
||||||
SSH_FILE_DIRECTORY=~/.ssh
|
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_FILE=${SSH_FILE_DIRECTORY}/${SSH_FILE_NAME}
|
||||||
SSH_HOST=Kansas-5800X
|
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}
|
chmod 600 ${SSH_FILE}
|
||||||
|
|
||||||
PUB_KEY_CONTENTS=$(cat ${SSH_FILE}.pub)
|
PUB_KEY_CONTENTS=$(cat ${SSH_FILE}.pub)
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash --posix
|
#!/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() {
|
usage() {
|
||||||
# Print out usage instructions for the local script
|
# Print out usage instructions for the local script
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/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() {
|
check_root() {
|
||||||
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)
|
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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() {
|
confirmation() {
|
||||||
# Receive confirmation from user as y, Y, n, or N
|
# Receive confirmation from user as y, Y, n, or N
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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_rgb() {
|
||||||
# Echo a colored string to the terminal based on rgb values
|
# Echo a colored string to the terminal based on rgb values
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash --posix
|
#!/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
|
set -e
|
||||||
|
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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 () {
|
rgb () {
|
||||||
# Echo a color printf to the terminal awaiting an actual echo to be colored
|
# Echo a color printf to the terminal awaiting an actual echo to be colored
|
||||||
|
Loading…
Reference in New Issue
Block a user