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

Merged
merged 21 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a9dc9f0
Merge pull request #948 from EpochModTeam/experimental
vbawol Oct 26, 2017
5bf563b
Merge pull request #949 from EpochModTeam/experimental
vbawol Oct 26, 2017
393b685
Merge pull request #954 from EpochModTeam/experimental
vbawol Oct 30, 2017
2b4ec06
Merge pull request #956 from EpochModTeam/experimental
vbawol Nov 5, 2017
c503237
Merge pull request #969 from EpochModTeam/experimental
vbawol Mar 15, 2018
9fa25d1
Merge pull request #970 from EpochModTeam/experimental
vbawol Mar 15, 2018
c8b3436
Merge pull request #971 from EpochModTeam/experimental
vbawol Mar 15, 2018
fc45cb8
Merge pull request #977 from EpochModTeam/experimental
vbawol May 24, 2018
3cdc78e
Merge pull request #978 from EpochModTeam/experimental
vbawol May 24, 2018
dff6921
Merge pull request #996 from EpochModTeam/experimental
vbawol Jan 31, 2019
503b468
Update CREDITS.md
vbawol Mar 1, 2019
b34823f
Update traderDiag_name.sqf
vbawol Mar 1, 2019
01eabac
Merge pull request #999 from EpochModTeam/experimental
vbawol Mar 28, 2019
38f8539
Merge pull request #1008 from EpochModTeam/experimental
vbawol Nov 2, 2019
cc7d97d
Merge pull request #1010 from EpochModTeam/experimental
vbawol Nov 26, 2019
9c222bb
Merge pull request #1011 from EpochModTeam/experimental
EpochModTeamInternal Jun 3, 2020
d063b49
Merge pull request #1017 from EpochModTeam/experimental
vbawol Sep 1, 2020
764fa2b
Changed case, changed PW for parse
tux-box Jan 7, 2024
fd64bc9
using some trickery to change case
tux-box Jan 7, 2024
aec4dff
all cases changed to lower and u- removed.
tux-box Jan 7, 2024
b372316
added a make lower case bash script to tools
tux-box Jan 7, 2024
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