Permalink
Browse files

Add function to change permission on a chroot.

  • Loading branch information...
Andy Chu
Andy Chu committed Sep 28, 2017
1 parent a36fe9a commit 7583c4cb62537a92a9a9c96426b55a724a7562f8
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/alpine.sh
View
@@ -36,6 +36,12 @@ _extract() {
extract() { sudo $0 _extract "$@"; }
extract-distro-build() { sudo $0 _extract $DISTRO_BUILD_CHROOT_DIR; }
# Without this, you can't 'su myusername'. It won't be able to execute bash.
chmod-chroot() {
local dest=${1:-$CHROOT_DIR}
sudo chmod 755 $dest
}
# add DNS -- for package manager
_setup-dns() {

0 comments on commit 7583c4c

Please sign in to comment.