-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathinstall_rundeps.sh
executable file
·83 lines (70 loc) · 1.23 KB
/
install_rundeps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env bash
# Copyright 2019-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2019 Intel Corporation
SUDO=''
[[ $EUID -ne 0 ]] && SUDO=sudo
update_pkg_cache() {
$SUDO apt-get update
}
install_run_cdf_deps() {
$SUDO apt-get -y install \
libgnutls30 \
libidn11
}
install_run_ctf_deps() {
$SUDO apt-get -y install \
libgnutls30 \
libidn11 \
libmemcached11
}
install_run_hss_deps() {
$SUDO apt-get -y install \
libgmp10 \
libgnutls30 \
libidn11 \
libnettle6 \
libssl1.0.0 \
libuv1 \
openssl
}
install_run_hssgtw_deps() {
$SUDO apt-get -y install \
libssl1.0.0 \
libuv1
}
install_run_pcrf_deps() {
$SUDO apt-get -y install \
libgmp10 \
libgnutls30 \
libidn11 \
libnettle6 \
libssl1.0.0 \
libuv1
}
install_run_pcef_deps() {
$SUDO apt-get -y install \
libgnutls30 \
libidn11
}
install_run_tdf_deps() {
$SUDO apt-get -y install \
libgnutls30 \
libidn11
}
install_run_tssf_deps() {
$SUDO apt-get -y install \
libgnutls30 \
libidn11
}
install_run_utils() {
$SUDO apt-get -y install \
dnsutils \
iproute2 \
iputils-ping \
tcpdump
}
cleanup_image() {
$SUDO rm -rf /var/lib/apt/lists/*
}
(return 2>/dev/null) && echo "Sourced" && return