Skip to content

Commit

Permalink
fix hard code username pi
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Sep 21, 2019
1 parent 4b946d4 commit 981bf6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions stage-localtunnel/00-localtunnel-install/01-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

install -v -m 755 files/install_node.sh "${ROOTFS_DIR}/sbin/install_node.sh"

on_chroot << EOF
/sbin/install_node.sh
EOF
#on_chroot << EOF
#/sbin/install_node.sh
#EOF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -x

NODE_VERSION=v9.8.0;
NPM_CACHE=/home/pi/.npm/npm-cache
NPM_CACHE=/home/${FIRST_USER_NAME}/.npm/npm-cache

# Install node.js
echo "Install node.js..."
Expand All @@ -24,7 +24,7 @@ npm cache clean -f
npm config set cache $NPM_CACHE --global
npm set progress=false
rm -rf $NPM_CACHE
sudo -H -u pi bash -c "mkdir -p $NPM_CACHE"
sudo -H -u ${FIRST_USER_NAME} bash -c "mkdir -p $NPM_CACHE"

npm install -g localtunnel
ln -f -s /opt/nodejs/bin/lt /sbin/lt;

0 comments on commit 981bf6b

Please sign in to comment.