Skip to content
Permalink
Browse files

Specify bootstrap install user and group if not root

  • Loading branch information
ryandesign committed Mar 7, 2018
1 parent 0918ef5 commit a8b2986869fd6f3aca64419663b0e55adc0e599e
Showing with 5 additions and 0 deletions.
  1. +5 −0 mpbb-selfupdate
@@ -36,9 +36,14 @@ selfupdate() {
applications_dir_flag="--with-applications-dir=${option_prefix}/Applications/MacPorts"
fi
: "${applications_dir_flag=}"
if [ "$(id -u)" -ne 0 ]; then
install_user_and_group_flags="--with-install-user=$(id -un) --with-install-group=$(id -gn)"
fi
: "${install_user_and_group_flags=}"
PATH=/usr/bin:/bin:/usr/sbin:/sbin ./configure \
--prefix="${option_prefix}" \
${applications_dir_flag} \
${install_user_and_group_flags} \
--enable-readline || return
make -j"$(sysctl -n hw.activecpu)" || return
make install || return

0 comments on commit a8b2986

Please sign in to comment.
You can’t perform that action at this time.