Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make files lowercase and change pw enteries to make them easier to find and replace. #1027

Open
wants to merge 4 commits into
base: release
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Server_Install_Pack/@epochhive/EpochServer.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ LogAbuse = 1
LogLimit = 999
IP = 127.0.0.1
Port = 2307
Password = changemen0w
Password = changeThisRConPasswd

[Redis]
IP = 127.0.0.1
Port = 6379
DB = 0
Password = Changeme9832
Password = changeThisRedisPasswd

[SteamAPI]
Logging = 0
Expand Down
2 changes: 1 addition & 1 deletion Server_Install_Pack/DB/redis-example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ slave-priority 100
# 150k passwords per second against a good box. This means that you should
# use a very strong password otherwise it will be very easy to break.
#
requirepass Changeme9832
requirepass changeThisRedisPasswd

# Command renaming.
#
Expand Down
2 changes: 1 addition & 1 deletion Server_Install_Pack/DB/redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ maxmemory 1gb
save 900 1
save 300 10
save 60 1000
requirepass Changeme9832
requirepass changeThisRedisPasswd
27 changes: 27 additions & 0 deletions Server_Install_Pack/Tools/makeLowerCase.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
#print usage
if [ -z $1 ];then
echo "Usage :$(basename $0) makes all files in the passed directory lowercase, one level deep. Prints new file names to screen."
exit 1
fi

#process all subdirectories and files in directory passed to this script
all="$(find $1 -depth)"

for name in ${all}; do
#set new name in lower case for files and directories
new_name="$(dirname "${name}")/$(basename "${name}" | tr '[A-Z]' '[a-z]')"

#check if new name already exists
if [ "${name}" != "${new_name}" ]; then
[ ! -e "${new_name}" ] && mv -T "${name}" "${new_name}"; echo "${name} was renamed to ${new_name}" || echo "${name} wasn't renamed!"
fi
done

echo
echo
#list directories and file new names in lowercase
echo "Directories and files with new names in lowercase letters"
find $(echo $1 | tr 'A-Z' 'a-z') -depth

exit 0
2 changes: 1 addition & 1 deletion Server_Install_Pack/sc/battleye/example-beserver.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RConPort 2307
RConPassword changemen0w
RConPassword changeThisRConPasswd
MaxPing 350

MaxCreateVehiclePerInterval 72 1
Expand Down
2 changes: 1 addition & 1 deletion Server_Install_Pack/sc/battleye/example-beserver_x64.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RConPort 2307
RConPassword changemen0w
RConPassword changeThisRConPasswd
MaxPing 350

MaxCreateVehiclePerInterval 72 1
Expand Down
8 changes: 4 additions & 4 deletions Server_Install_Pack/sc/server-example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// GLOBAL SETTINGS
hostname = "EpochMod.com (0.5|1.68) ID02 YourHost";
password = "";
passwordAdmin = "!CHANGE_THIS_PASSWORD!";
serverCommandPassword = "!CHANGE_THIS_PASSWORD!";
passwordAdmin = "!CHANGE_THE_ADMIN_PASSWORD!";
serverCommandPassword = "!CHANGE_THE_COMMAND_PASSWORD!";
logFile = "A3Master.log";
verifySignatures = 2;
BattlEye = 1;
Expand Down Expand Up @@ -43,11 +43,11 @@ vonCodecQuality = 30; // Quality from 1 to 30
forceRotorLibSimulation = 0; // Enforces the Advanced Flight Model on the server. Default = 0 (up to the player). 1 - forced AFM, 2 - forced SFM.
persistent = 1; // If 1, missions still run on even after the last player disconnected.

// MISSIONS CYCLE (see below) (epoch.Altis, epoch.Stratis, epoch.Chernarus, epoch.Bornholm)
// MISSIONS CYCLE (see below) (epoch.altis, epoch.stratis, epoch.chernarus, epoch.bornholm)
class Missions
{
class Epoch {
template = epoch.Altis; // DO NOT CHANGE THIS, IT WILL BREAK YOUR SERVER
template = epoch.altis; // DO NOT CHANGE THIS, IT WILL BREAK YOUR SERVER
difficulty = "custom"; // difficulty settings: Recruit, Regular Veteran, Custom
};
};
Expand Down
27 changes: 27 additions & 0 deletions Tools/makeLowerCase.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
#print usage
if [ -z $1 ];then
echo "Usage :$(basename $0) directory to recursivly make lowercase"
exit 1
fi

#process all subdirectories and files in parent directory
all="$(find $1 -depth)"

for name in ${all}; do
#set new name in lower case for files and directories
new_name="$(dirname "${name}")/$(basename "${name}" | tr '[A-Z]' '[a-z]')"

#check if new name already exists
if [ "${name}" != "${new_name}" ]; then
[ ! -e "${new_name}" ] && mv -T "${name}" "${new_name}"; echo "${name} was renamed to ${new_name}" || echo "${name} wasn't renamed!"
fi
done

echo
echo
#list directories and file new names in lowercase
echo "Directories and files with new names in lowercase letters"
find $(echo $1 | tr 'A-Z' 'a-z') -depth

exit 0