Nathaniel van Diepen 9 лет назад
Родитель
Сommit
1ec57c371f
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      install.sh

+ 4 - 2
install.sh

@@ -179,8 +179,10 @@ sublog "shell";
 cp data/etc/adduser.conf /etc/adduser.conf;
 cp data/etc/default/useradd /etc/default/useradd;
 grep -v nologin /etc/passwd | grep -v /bin/false | grep -v /bin/sync | grep -v /var/lib/libuuid | cut -d : -f 1 | while read user;do
-	chsh -s /bin/zsh $user;
-	info "Changed shell for $user";
+	if [[ "$user" != "root" ]];then
+		chsh -s /bin/zsh $user;
+		info "Changed shell for $user";
+	fi;
 done;
 sublog "hosts";
 host omnimaga.org;