#!/bin/bash set -e if [[ $UID != "0" ]]; then echo "ERROR: You must run this script as root!" exit 1 fi cp nanorc /etc/nanorc && chmod 644 /etc/nanorc