Skip to content

Commit

Permalink
minor fix for makeSkin.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Luca <[email protected]>
  • Loading branch information
tomaluca95 committed May 31, 2018
1 parent 845fe5d commit 5bc7911
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions makeSkin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,20 @@ docker run -i \
-v $(pwd)/gulpfile.js:/opt/gulpfile.js \
node:8 \
/bin/bash <<EOF
export MY_TMP_GROUP=node
export MY_TMP_USER=node
if getent group ! `id -g`
set -e
set -x
export MY_TMP_GROUP=node-tmp
export MY_TMP_USER=node-tmp
if [[ \$(getent group `id -g` | wc -c) -eq 0 ]]
then
groupadd --gid `id -g` \$MY_TMP_GROUP
fi
if getent passwd ! `id -u`
if [[ \$(getent passwd `id -u` | wc -c) -eq 0 ]]
then
useradd -d /tmp/ --uid "`id -u`" --gid "`id -g`" \$MY_TMP_USER
fi
cd /opt/
getent group `id -g`
getent passwd `id -u`
su -s /bin/bash -c 'npm install && node_modules/bower/bin/bower install && node_modules/gulp/bin/gulp.js sass' \`id -un `id -u`\`
EOF

0 comments on commit 5bc7911

Please sign in to comment.