File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+
3
+ . ../../common-script.sh
4
+
5
+ configureDNF () {
6
+ case $PACKAGER in
7
+ dnf)
8
+ $ESCALATION_TOOL sed -i ' /^max_parallel_downloads=/c\max_parallel_downloads=10' /etc/dnf/dnf.conf || echo ' max_parallel_downloads=10' >> /etc/dnf/dnf.conf
9
+ echo " fastestmirror=True" | $ESCALATION_TOOL tee -a /etc/dnf/dnf.conf > /dev/null
10
+ echo " defaultyes=True" | $ESCALATION_TOOL tee -a /etc/dnf/dnf.conf > /dev/null
11
+
12
+ $ESCALATION_TOOL " $PACKAGER " -y install dnf-plugins-core
13
+ ;;
14
+ * )
15
+ echo " Unsupported distribution: $DTYPE "
16
+ ;;
17
+ esac
18
+ }
19
+
20
+ checkEnv
21
+ configureDNF
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+
3
+ . ../../common-script.sh
4
+
5
+ multimedia () {
6
+ case $PACKAGER in
7
+ dnf)
8
+ if [[ -e /etc/yum.repos.d/rpmfusion-free.repo && -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]]; then
9
+ echo " Installing Multimedia Codecs"
10
+ $ESCALATION_TOOL dnf swap ffmpeg-free ffmpeg --allowerasing -y
11
+ $ESCALATION_TOOL dnf update @multimedia --setopt=" install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin -y
12
+ $ESCALATION_TOOL dnf update @sound-and-video -y
13
+ echo " Multimedia Codecs Installed"
14
+ fi
15
+ ;;
16
+ * )
17
+ echo " Unsupported distribution: $DTYPE "
18
+ ;;
19
+ esac
20
+ }
21
+
22
+ checkEnv
23
+ multimedia
Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ values = ["dnf"]
32
32
name = " RPM Fusion Setup"
33
33
script = " fedora/rpm-fusion-setup.sh"
34
34
35
+ [[data .entries ]]
36
+ name = " Configure DNF"
37
+ script = " fedora/configure-dnf.sh"
38
+
39
+ [[data .entries ]]
40
+ name = " Multimedia Setup"
41
+ script = " fedora/multimedia-codecs.sh"
42
+
35
43
[[data ]]
36
44
name = " Full System Update"
37
45
script = " system-update.sh"
You can’t perform that action at this time.
0 commit comments