diff --git a/main.go b/main.go index 07f7b63..c3c321a 100644 --- a/main.go +++ b/main.go @@ -57,6 +57,10 @@ func init() { } func main() { + if os.Geteuid() == 0 { + log.Fatal("Running LURE as root is forbidden as it may cause catastrophic damage to your system").Send() + } + ctx := context.Background() ctx, cancel := signal.NotifyContext(ctx, syscall.SIGINT, syscall.SIGTERM) defer cancel() diff --git a/translations/lure.en.toml b/translations/lure.en.toml index 46983e5..ead97cd 100644 --- a/translations/lure.en.toml +++ b/translations/lure.en.toml @@ -118,6 +118,10 @@ value = 'Compressing package' id = 2952487371 value = 'Building package metadata' +[[translation]] +id = 3121791194 +value = 'Running LURE as root is forbidden as it may cause catastrophic damage to your system' + [[translation]] id = 1579384326 value = 'name' diff --git a/translations/lure.ru.toml b/translations/lure.ru.toml index e5c03b6..1b59759 100644 --- a/translations/lure.ru.toml +++ b/translations/lure.ru.toml @@ -114,6 +114,10 @@ value = 'Сжатие пакета' id = 2952487371 value = 'Создание метаданных пакета' +[[translation]] +id = 3121791194 +value = 'Запуск LURE от имени root запрещен, так как это может привести к катастрофическому повреждению вашей системы' + [[translation]] id = 1579384326 value = 'название'