Browse Source

Prefix package installation commands with sudo

This file calls either rpm, dpkg or apt to install a YAML module for
python. This change removes the need for this file to be run as root.

Change-Id: I77590d24e82f0ced69db97ef946fa7202d1f0a7a
changes/77/675677/1
Steven Fitzpatrick 2 years ago
parent
commit
19b9cecb77
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tools/airship

+ 2
- 2
tools/airship View File

@ -21,9 +21,9 @@ test -t 1 && test -t 0 && DEFAULT_TERM_OPTS='-it'
# Python YAML module required to read versions.yaml
if grep -iq suse /etc/os-release; then
rpm -q python3-pyaml --quiet || zypper --non-interactive install python3-pyaml
sudo rpm -q python3-pyaml --quiet || sudo zypper --non-interactive install python3-pyaml
else
dpkg -s python3-yaml &> /dev/null || apt -y install python3-yaml
sudo dpkg -s python3-yaml &> /dev/null || sudo apt -y install python3-yaml
fi
ENV_FILE=$(mktemp)


Loading…
Cancel
Save