Skip to content

Commit

Permalink
update: add server.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sigee-min committed Aug 2, 2024
1 parent 3cbedc6 commit 82fc64a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
def copy_configs():
src_directory = "/data/config-tmp/"
dest_directory = "/data/config/"
root_directory = "/data/"

os.makedirs(dest_directory, exist_ok=True)
os.makedirs(dest_plugin_directory, exist_ok=True)

files = os.listdir(src_directory)

for file in files:
src_path = os.path.join(src_directory, file)
dest_path = os.path.join(dest_directory, file)
if file == "server.properties":
dest_path = os.path.join(root_directory, file)

try:
if os.path.exists(dest_path):
Expand Down

0 comments on commit 82fc64a

Please sign in to comment.