24 lines
555 B
Bash
Executable File
24 lines
555 B
Bash
Executable File
#!/bin/bash
|
|
### Setup Fedora ###
|
|
# Abort on errors
|
|
set -e
|
|
|
|
# Check if the script is running as root
|
|
if [[ $UID != "0" ]]; then
|
|
echo "ERROR: You must run this script as root!"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
|
|
# Run a system upgrade
|
|
dnf upgrade
|
|
|
|
|
|
# Install RPM Fusion repositories
|
|
dnf install \
|
|
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
|
|
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
|
dnf install \
|
|
rpmfusion-free-release-tainted \
|
|
rpmfusion-nonfree-release-tainted |