diff options
author | Mike Delago <32778141+michaeldelago@users.noreply.github.com> | 2023-08-25 16:02:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 22:02:21 +0200 |
commit | 23c5e990b6b6fe9dbc8fff1f2df5f3da9bc557e1 (patch) | |
tree | 170ad297bd6951f5dac28e6e46335fd515832a93 /apps/compiler/includes/functions.sh | |
parent | 9f977a37509b8d6a91de2d47d3ef83553123f9ed (diff) |
fix(Apps/Docker): ensure conf files always exist (#17071)
Diffstat (limited to 'apps/compiler/includes/functions.sh')
-rw-r--r-- | apps/compiler/includes/functions.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/compiler/includes/functions.sh b/apps/compiler/includes/functions.sh index 7435e655e0..5929816f92 100644 --- a/apps/compiler/includes/functions.sh +++ b/apps/compiler/includes/functions.sh @@ -143,6 +143,15 @@ function comp_compile() { find "$AC_BINPATH_FULL" -mindepth 1 -maxdepth 1 -type f -exec sudo chown root:root -- {} + find "$AC_BINPATH_FULL" -mindepth 1 -maxdepth 1 -type f -exec sudo chmod u+s -- {} + + if [[ -n "$DOCKER" ]]; then + [[ -f "$confDir/worldserver.conf.dist" ]] && \ + cp -nv "$confDir/worldserver.conf.dist" "$confDir/worldserver.conf" + [[ -f "$confDir/authserver.conf.dist" ]] && \ + cp -nv "$confDir/authserver.conf.dist" "$confDir/authserver.conf" + [[ -f "$confDir/dbimport.conf.dist" ]] && \ + cp -nv "$confDir/dbimport.conf.dist" "$confDir/dbimport.conf" + fi + echo "Done" ;; esac |