feat(admin): expand exchange admin and unify admin UX #19
@@ -16,12 +16,19 @@ if command -v "${PYTHON_BIN}" >/dev/null 2>&1; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
APT_RUNNER=()
|
||||||
|
if [[ "$(id -u)" -ne 0 ]]; then
|
||||||
|
APT_RUNNER=(sudo)
|
||||||
|
fi
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
apt-get update
|
"${APT_RUNNER[@]}" apt-get update
|
||||||
apt-get install -y software-properties-common
|
if ! "${APT_RUNNER[@]}" apt-get install -y "${PYTHON_BIN}" "${PYTHON_BIN}-venv"; then
|
||||||
add-apt-repository -y ppa:deadsnakes/ppa
|
"${APT_RUNNER[@]}" apt-get install -y software-properties-common
|
||||||
apt-get update
|
"${APT_RUNNER[@]}" add-apt-repository -y ppa:deadsnakes/ppa
|
||||||
apt-get install -y "${PYTHON_BIN}" "${PYTHON_BIN}-venv"
|
"${APT_RUNNER[@]}" apt-get update
|
||||||
|
"${APT_RUNNER[@]}" apt-get install -y "${PYTHON_BIN}" "${PYTHON_BIN}-venv"
|
||||||
|
fi
|
||||||
|
|
||||||
command -v "${PYTHON_BIN}"
|
command -v "${PYTHON_BIN}"
|
||||||
|
|||||||
Reference in New Issue
Block a user