-
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.
feat: remove .env.build and automate env setup via make setup
- Loading branch information
1 parent
8aa287c
commit 3398584
Showing
7 changed files
with
49 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,20 @@ | ||
#!/bin/bash | ||
|
||
# Check if .env.dist file exists | ||
if [ ! -f .env.dist ]; then | ||
echo ".env.dist file not found!" | ||
exit 1 | ||
fi | ||
|
||
# Copy .env.dist to .env | ||
cp .env.dist .env | ||
|
||
# Get the current user's UID and GID | ||
USER_UID=$(id -u) | ||
USER_GID=$(id -g) | ||
|
||
# Replace placeholders in .env with actual UID and GID | ||
sed -i "s/UID=.*$/UID=${USER_UID}/" .env | ||
sed -i "s/GID=.*$/GID=${USER_GID}/" .env | ||
|
||
echo ".env file has been created and updated with UID and GID." |