This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
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.
entrypoint for docker images to correctly create database files yk
- Loading branch information
1 parent
8cb1e0d
commit d08bd46
Showing
2 changed files
with
16 additions
and
1 deletion.
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
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,15 @@ | ||
#!/bin/sh | ||
|
||
if [ ! -f /app/netchat.db ]; then | ||
touch /app/netchat.db | ||
echo "Created netchat.db" | ||
else | ||
echo "netchat.db already exists" | ||
fi | ||
|
||
if [ ! -f /app/config.toml ]; then | ||
cp /app/config.toml.example /app/config.toml | ||
echo "Created config.toml from config.toml.example" | ||
fi | ||
|
||
exec netchat-server |