-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove adminer by default, expose UDP ports
- Loading branch information
Mick Vermeulen
authored and
Mick Vermeulen
committed
Sep 20, 2020
1 parent
5e347b0
commit 0273cec
Showing
6 changed files
with
62 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
data/* | ||
.env | ||
.DS_Store | ||
.DS_Store | ||
cert.pfx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
# WIP Install script | ||
|
||
if ! [ -f ".env" ]; then | ||
echo "Environment file does not exist yet, setting it up for you." | ||
echo "Please specify a valid absolute path to the /res folder inside your LU client (make sure to escape spaces):" | ||
|
||
while ! [ -d "$GAME_FOLDER" ]; do | ||
read GAME_FOLDER | ||
if ! [ -d "$GAME_FOLDER" ]; then | ||
echo "$GAME_FOLDER is not a valid directory, retry:" | ||
fi | ||
done | ||
|
||
if ! [ -d "$GAME_FOLDER/../mods" ]; then | ||
echo "It seems like you don't have the TcpUdp mod installed in your client, you won't be able to connect with Uchu until you install this mod. More information can be found in the README." | ||
else | ||
echo "$GAME_FOLDER seems like a valid location, continuing." | ||
fi | ||
|
||
sed "s|/res|$GAME_FOLDER|g" .env.sample > .env | ||
|
||
echo "Finished setting up environment file." | ||
fi | ||
|
||
if ! [ -d "data" ]; then | ||
echo "Database folder not found, adding \"data\" folder." | ||
mkdir data | ||
fi | ||
|
||
if [ -x "$(command -v docker)" ] && [ -x "$(command -v docker-compose)" ]; then | ||
echo "Starting Uchu" | ||
docker-compose up --build | ||
else | ||
echo "You don't have docker or docker-compose installed, refer to the README for installation instructions." | ||
fi |