Skip to content

Commit

Permalink
Merge pull request #49 from hurricanehrndz/master
Browse files Browse the repository at this point in the history
Fixing slow chown on boot up.
  • Loading branch information
hurricanehrndz committed Mar 2, 2016
2 parents 5d71724 + 87e858b commit ff26d37
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion docker-containers/beta/root/var/cache/scripts/emby-server
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ prepare_docker_volume_parameters() {
if [ ! -d "${APP_CONFIG}" ]; then
mkdir -p ${APP_CONFIG}
fi
chown -R ${APP_UID}:${APP_GID} ${APP_CONFIG}

CURR_UID=$(stat -c%u ${APP_CONFIG})
CURR_GID=$(stat -c%u ${APP_CONFIG})
if [ "$CURR_UID" != "$APP_UID" ] || [ "$CURR_GID" != "$APP_GID" ]; then
chown -R $APP_UID:$APP_GID ${APP_CONFIG}
fi

# prepare local filesystems
VOLUMES+=" --volume=${APP_CONFIG}:/config"
}
Expand Down
8 changes: 7 additions & 1 deletion docker-containers/dev/root/var/cache/scripts/emby-server
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ prepare_docker_volume_parameters() {
if [ ! -d "${APP_CONFIG}" ]; then
mkdir -p ${APP_CONFIG}
fi
chown -R ${APP_UID}:${APP_GID} ${APP_CONFIG}

CURR_UID=$(stat -c%u ${APP_CONFIG})
CURR_GID=$(stat -c%u ${APP_CONFIG})
if [ "$CURR_UID" != "$APP_UID" ] || [ "$CURR_GID" != "$APP_GID" ]; then
chown -R $APP_UID:$APP_GID ${APP_CONFIG}
fi

# prepare local filesystems
VOLUMES+=" --volume=${APP_CONFIG}:/config"
}
Expand Down
8 changes: 7 additions & 1 deletion docker-containers/stable/root/var/cache/scripts/emby-server
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ prepare_docker_volume_parameters() {
if [ ! -d "${APP_CONFIG}" ]; then
mkdir -p ${APP_CONFIG}
fi
chown -R ${APP_UID}:${APP_GID} ${APP_CONFIG}

CURR_UID=$(stat -c%u ${APP_CONFIG})
CURR_GID=$(stat -c%u ${APP_CONFIG})
if [ "$CURR_UID" != "$APP_UID" ] || [ "$CURR_GID" != "$APP_GID" ]; then
chown -R $APP_UID:$APP_GID ${APP_CONFIG}
fi

# prepare local filesystems
VOLUMES+=" --volume=${APP_CONFIG}:/config"
}
Expand Down

0 comments on commit ff26d37

Please sign in to comment.