Files
linux_script_setupfedora/setupfedora.sh
2021-08-11 22:35:41 +02:00

15 lines
224 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