add some steps

This commit is contained in:
Михаил Капелько
2025-12-05 22:58:48 +03:00
parent e2a09dcaaf
commit d9d691db1d
8 changed files with 49 additions and 5 deletions

9
step/ensureRootUser Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# https://askubuntu.com/a/15856
STEP=$((STEP+1))
echo -e "\n> > > > Шаг №$STEP. Проверяем запуск из-под root"
if [[ $EUID -ne 0 ]]; then
echo "ОШИБКА: Перезапустите как root"
exit 1
fi