Skip to content

Commit

Permalink
Add a perm_check if the container run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-rds committed Nov 22, 2020
1 parent 58d47ac commit 03dd451
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions context/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ check_perms ${ETEBASE_EASY_CONFIG_PATH}

if [ -e "${ETEBASE_EASY_CONFIG_PATH}" ]; then
check_perms "$(grep secret_file ${ETEBASE_EASY_CONFIG_PATH} | sed -e 's/secret_file = //g')"
check_perms "$(grep secret_file ${ETEBASE_EASY_CONFIG_PATH} | sed -e 's/media_root = //g')"
if grep sqlite3 "${ETEBASE_EASY_CONFIG_PATH}" >/dev/null; then
check_perms "$(grep name ${ETEBASE_EASY_CONFIG_PATH} | sed -e 's/name = //g')" 'w'
fi
Expand Down

0 comments on commit 03dd451

Please sign in to comment.