This commit is contained in:
Daniel Hansson 2017-12-05 22:02:51 +01:00 коммит произвёл GitHub
Родитель 05fe258eac
Коммит bcdd21e3c2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 12 добавлений и 4 удалений

16
lib.sh
Просмотреть файл

@ -157,11 +157,19 @@ is_root() {
root_check() {
if ! is_root
then
msg_box "Sorry, you are not root.
msg_box "Sorry, you are not root. You now have two options:
You have two options:
1. With sudo, type: sudo bash $SCRIPTS/script.sh
2. Become root, type: sudo -i, to become root. Then type /path/to/script.sh"
1. With SUDO directly:
a) :~$ sudo bash $SCRIPTS/name-of-script.sh
2. Become ROOT and then type your command:
a) :~$ sudo -i
b) :~# $SCRIPTS/name-of-script.sh
In both cases above you can leave out $SCRIPTS if the script
is directly in your PATH.
More infromation can be found here: https://unix.stackexchange.com/a/3064"
exit 1
fi
}