mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-10 14:04:51 +02:00
Re: "Allow installer to run without sudo & only need it when need to install Docker"
This commit is contained in:
parent
6f3514199a
commit
c997b8625f
1 changed files with 6 additions and 4 deletions
|
@ -58,10 +58,12 @@ func main() {
|
|||
reader := bufio.NewReader(os.Stdin)
|
||||
|
||||
// check if the user is root
|
||||
if !isDockerInstalled() {
|
||||
if os.Geteuid() != 0 {
|
||||
fmt.Println("This script must be run as root")
|
||||
fmt.Println("Docker is not installed. Please install Docker manually or run this installer as root.")
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
var config Config
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue