Procházet zdrojové kódy

Don't modify root's shell

Nathaniel van Diepen před 9 roky
rodič
revize
1ec57c371f
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  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;