Skip to content

Commit

Permalink
tools/build.sh: Remove unused home directory
Browse files Browse the repository at this point in the history
Do not create a $HOME. It is not used, because the build scripts,
cloned from TEMPLATE.sh, also create a empty HOME and overwrite
the environment variable again.

Fixes #54.
  • Loading branch information
donald committed Apr 18, 2019
1 parent 3f76841 commit d234fa2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ if [ -n "$opt_purge" ]; then
test "$(stat -c %U "/pkg/$PKG")" = "build" || log_cmd chown build:build "/pkg/$PKG"
fi

export HOME=/scratch/local/build_home;
mkdir -p $HOME; chown build:build $HOME

chmod a+rx "$PKG.build.sh"

echo "sudo -u build -i ./$PKG.build.sh </dev/null 2>&1 | tee $PKG.build.log"
Expand Down

0 comments on commit d234fa2

Please sign in to comment.