Skip to content

Commit

Permalink
Update provision-os.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pastudan authored Mar 18, 2022
1 parent 375accc commit a5f2e42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions provision-os.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash
set -e

if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi

hostnamectl set-hostname pibox
sed -i 's/raspberrypi/pibox/' /etc/hosts
Expand Down

0 comments on commit a5f2e42

Please sign in to comment.