File: bootstrap.sh.j2

package info (click to toggle)
python-mitogen 0.3.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,728 kB
  • sloc: python: 24,644; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (21 lines) | stat: -rw-r--r-- 489 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set -o errexit
set -o nounset

{% for item in package_manager_repos %}
cat << "EOF" > "{{ item.dest }}"
{{ item.content }}
EOF
{% endfor %}

{% if bootstrap_packages %}
if command -v apt-get; then
  apt-get -y update
  apt-get -y --no-install-recommends install {{ bootstrap_packages | join(' ') }}
elif command -v dnf; then
  dnf -y install {{ bootstrap_packages | join(' ') }}
elif command -v yum; then
  yum -y install {{ bootstrap_packages | join(' ') }}
else
  exit 42
fi
{% endif %}