beginning "create_vm" module, splitted main program

This commit is contained in:
fatalerrors
2021-07-13 12:58:47 +02:00
parent 3f8d3b633f
commit 83a41fd21c
6 changed files with 198 additions and 116 deletions

View File

@@ -80,3 +80,11 @@ function backtrace
(( i=i++ ))
done
}
check_root()
{
if [[ $EUID -ne 0 ]]; then
prnt E "Ce script doit être démarré en tant que root. Arrêt."
die 4 --force
fi
}