minor bug fix
[distro-setup] / maru-init
old mode 100644 (file)
new mode 100755 (executable)
index 92f179b..017c6d1
--- a/maru-init
+++ b/maru-init
@@ -38,19 +38,19 @@ esac
 
 
 scp $(readlink -f $(which rootsshsync)) maru-init maru@n5:
-ssh maru@n5 ./rootsshsync
+ssh -t maru@n5 ./rootsshsync
 
 ssh root@n5 bash <<'EOF'
 echo "ian  ALL=(ALL)  NOPASSWD: ALL" >>/etc/sudoers
 echo n5 >/etc/hostname
-hostname -F /etc/hostname
 sed -i '/^127\.0\.1\.1/d' /etc/hosts
 echo "127.0.1.1 n5.lan n5" >>/etc/hosts
+hostname -F /etc/hostname
 
-kill $(pgrep -U ian)
+kill $(pgrep -U maru)
 usermod -l ian -m -d /home/ian maru
 groupmod -n ian maru
-useradd -m -s /bin/bash traci
+useradd -m -s /bin/bash user2
 EOF
 
 # then do myunison n5,