13 lines
398 B
Bash
Executable File
13 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "# Started background chowning of ${PATH_WEBROOT} to ${USERNAME}:${GROUPNAME} (${PUID}:${PGID})..."
|
|
|
|
if [ ${DISABLE_WEBROOT_CHOWN} -eq 1 ] ; then
|
|
echo chowning skipped because of DISABLE_WEBROOT_CHOWN
|
|
exit 0
|
|
fi
|
|
|
|
chown "${USERNAME}:${GROUPNAME}" "${PATH_WEBROOT}" -R
|
|
find "${PATH_WEBROOT}" -type d -exec chmod 0755 {} \; &
|
|
find "${PATH_WEBROOT}" -type f -exec chmod 0644 {} \; &
|