Skip to content
This repository was archived by the owner on Mar 15, 2019. It is now read-only.

Commit 88621ce

Browse files
ChrisBatesJulien Neuhart
authored andcommitted
Wrap path in quotations to allow for paths with spaces (#55)
1 parent a619bf6 commit 88621ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/scripts/fix-permissions.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ NEW_UID=$(id -u);
1313

1414
if [ "$1" == "NGINX" ]; then
1515
echo "Setting UID ($NEW_UID) to \"www-data\" user in $1 container ...";
16-
sedi "s/\${UID}/$NEW_UID/g" ${ROOT}/modules/nginx/docker-compose.yml;
16+
sedi "s/\${UID}/$NEW_UID/g" "${ROOT}/modules/nginx/docker-compose.yml";
1717
elif [ "$1" == "PHP-FPM" ]; then
1818
echo "Setting UID ($NEW_UID) to \"www-data\" user in $1 container ...";
19-
sedi "s/\${UID}/$NEW_UID/g" ${ROOT}/modules/php-fpm/docker-compose.yml;
19+
sedi "s/\${UID}/$NEW_UID/g" "${ROOT}/modules/php-fpm/docker-compose.yml";
2020
else
2121
echo "Setting UID ($NEW_UID) to \"www-data\" user in Docker Sync configuration file ...";
22-
sedi "s/\${UID}/$NEW_UID/g" ${ROOT}/docker-sync.yml;
22+
sedi "s/\${UID}/$NEW_UID/g" "${ROOT}/docker-sync.yml";
2323
fi;
2424

2525
exit 0;

0 commit comments

Comments
 (0)