Skip to content

Commit

Permalink
Use prefix user to run commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bonicim committed Jul 13, 2020
1 parent 773a72e commit 6d16531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/rabbit_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ function install_on_debian {
${prefix} apt-get install apt-transport-https libwxbase3.0-0v5 libwxgtk3.0-0v5 libsctp1 build-essential python-dev openssl libssl-dev libevent-dev git
${prefix} apt-get purge -yf erlang*
# Add the signing key
wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | apt-key add -
wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | ${prefix} apt-key add -

if [[ ! -f "/etc/apt/sources.list.d/erlang.solutions.list" ]]; then
echo "deb https://packages.erlang-solutions.com/ubuntu $DIST contrib" | tee /etc/apt/sources.list.d/erlang.solutions.list
echo "deb https://packages.erlang-solutions.com/ubuntu $DIST contrib" | ${prefix} tee /etc/apt/sources.list.d/erlang.solutions.list
fi

version=${erlang_package_version}
Expand Down

0 comments on commit 6d16531

Please sign in to comment.