File: install_sudo.sh

package info (click to toggle)
python-license-expression 30.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,588 kB
  • sloc: python: 6,130; sh: 315; makefile: 51
file content (15 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e


if [[ "$1" == "apt-get" ]]; then
    apt-get update -y
    apt-get -o DPkg::Options::="--force-confold" install -y sudo

elif [[ "$1" == "yum" ]]; then
    yum install -y sudo

elif [[ "$1" == "dnf" ]]; then
    dnf install -y sudo

fi