Browse Source

Don't modify root's shell

Nathaniel van Diepen 9 years ago
parent
commit
1ec57c371f
1 changed files with 4 additions and 2 deletions
  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;