Skip to content

Commit

Permalink
Update rpi-setup.sh
Browse files Browse the repository at this point in the history
Add run as root
  • Loading branch information
ctlinux authored Jun 16, 2024
1 parent 9c88dc1 commit 2333137
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpi-setup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

### Script for configuration of Docker and Portainer for Debian-based systems (Debian, Ubuntu, Raspbian) ###
### This script must be run as root ###

# REF:https://docs.docker.com/engine/install/debian/#install-using-the-repository

# Ensure script is run as root
if [ "$(id -u)" -ne 0 ]; then echo "Please run as root." >&2; exit 1; fi

# Install pre-requisite packages
echo "Installing required packages"
sleep 2
Expand Down

0 comments on commit 2333137

Please sign in to comment.