mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(CORE): file permissions for the devcontainer (#13686)
This commit is contained in:
@@ -136,16 +136,19 @@ function comp_compile() {
|
|||||||
|
|
||||||
cd $CWD
|
cd $CWD
|
||||||
|
|
||||||
if [[ $DOCKER = 1 ]]; then
|
|
||||||
echo "Generating confs..."
|
|
||||||
cp -n "env/dist/etc/worldserver.conf.dockerdist" "${confDir}/worldserver.conf"
|
|
||||||
cp -n "env/dist/etc/authserver.conf.dockerdist" "${confDir}/authserver.conf"
|
|
||||||
cp -n "env/dist/etc/dbimport.conf.dockerdist" "${confDir}/dbimport.conf"
|
|
||||||
fi
|
|
||||||
# set all aplications SUID bit
|
# set all aplications SUID bit
|
||||||
echo "Setting permissions on binary files"
|
echo "Setting permissions on binary files"
|
||||||
find "$AC_BINPATH_FULL" -type f -exec sudo chown root:root -- {} +
|
find "$AC_BINPATH_FULL" -mindepth 1 -maxdepth 1 -type f -exec sudo chown root:root -- {} +
|
||||||
find "$AC_BINPATH_FULL" -type f -exec sudo chmod u+s -- {} +
|
find "$AC_BINPATH_FULL" -mindepth 1 -maxdepth 1 -type f -exec sudo chmod u+s -- {} +
|
||||||
|
|
||||||
|
DOCKER_ETC_FOLDER=${DOCKER_ETC_FOLDER:-"env/dist/etc"}
|
||||||
|
|
||||||
|
if [[ $DOCKER = 1 && $DISABLE_DOCKER_CONF != 1 ]]; then
|
||||||
|
echo "Generating confs..."
|
||||||
|
cp -n "$DOCKER_ETC_FOLDER/worldserver.conf.dockerdist" "${confDir}/worldserver.conf"
|
||||||
|
cp -n "$DOCKER_ETC_FOLDER/authserver.conf.dockerdist" "${confDir}/authserver.conf"
|
||||||
|
cp -n "$DOCKER_ETC_FOLDER/dbimport.conf.dockerdist" "${confDir}/dbimport.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
;;
|
;;
|
||||||
|
|||||||
1
env/docker/etc/dbimport.conf.dockerdist
vendored
1
env/docker/etc/dbimport.conf.dockerdist
vendored
@@ -2,7 +2,6 @@
|
|||||||
# Files in LogsDir will reflect on your host directory: docker/worldserver/logs
|
# Files in LogsDir will reflect on your host directory: docker/worldserver/logs
|
||||||
LogsDir = "/azerothcore/env/dist/logs"
|
LogsDir = "/azerothcore/env/dist/logs"
|
||||||
# Files in TempDir will reflect on your host directory: docker/authserver/temp
|
# Files in TempDir will reflect on your host directory: docker/authserver/temp
|
||||||
TempDir = "/azerothcore/env/dist/temp"
|
|
||||||
DataDir = "/azerothcore/env/dist/data"
|
DataDir = "/azerothcore/env/dist/data"
|
||||||
|
|
||||||
# Change this configuration accordingly with your docker setup
|
# Change this configuration accordingly with your docker setup
|
||||||
|
|||||||
1
env/docker/etc/worldserver.conf.dockerdist
vendored
1
env/docker/etc/worldserver.conf.dockerdist
vendored
@@ -7,7 +7,6 @@
|
|||||||
# Files in LogsDir will reflect on your host directory: docker/worldserver/logs
|
# Files in LogsDir will reflect on your host directory: docker/worldserver/logs
|
||||||
LogsDir = "/azerothcore/env/dist/logs"
|
LogsDir = "/azerothcore/env/dist/logs"
|
||||||
# Files in TempDir will reflect on your host directory: docker/authserver/temp
|
# Files in TempDir will reflect on your host directory: docker/authserver/temp
|
||||||
TempDir = "/azerothcore/env/dist/temp"
|
|
||||||
DataDir = "/azerothcore/env/dist/data"
|
DataDir = "/azerothcore/env/dist/data"
|
||||||
|
|
||||||
# Change this configuration accordingly with your docker setup
|
# Change this configuration accordingly with your docker setup
|
||||||
|
|||||||
Reference in New Issue
Block a user