From 20ff7944c6e2132e6d71ffe4c040d7e9983956c2 Mon Sep 17 00:00:00 2001 From: Vitalijss Date: Tue, 6 Dec 2022 20:55:13 +0200 Subject: [PATCH] change to root --- bash/kubuntu-skola.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bash/kubuntu-skola.sh b/bash/kubuntu-skola.sh index 5fe6e04..2b811f9 100644 --- a/bash/kubuntu-skola.sh +++ b/bash/kubuntu-skola.sh @@ -1,6 +1,8 @@ #!/bin/bash -echo "Ievadi paroli" -sudo su +if (( $EUID != 0 )); then + echo "Palaid šo ar root tiesībām!" + exit +fi #Atjauninām repozitorijus un atjauninām sistēmu apt update && apt upgrade -y #Instalējam pamata programmas