introduce steps

This commit is contained in:
Михаил Капелько
2025-12-06 07:00:38 +03:00
parent e66f3b779c
commit 335811b267
12 changed files with 62 additions and 7 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