Skip to content

Commit

Permalink
fix: add check for is 'ps' command is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Apr 26, 2024
1 parent 8f81293 commit c1ee8dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ check_user_not_root() {
yellow_echo "Rerunning this script as user 'svcfmtm'."
echo

if ! command -v ps &>/dev/null; then
apt-get update > /dev/null
apt-get install -y procps --no-install-recommends > /dev/null
echo
fi

if ! command -v machinectl &>/dev/null; then
# Start the installation process in the background with spinner
( apt-get update > /dev/null
Expand Down

0 comments on commit c1ee8dd

Please sign in to comment.