--- a/Makefile Thu Mar 29 16:39:04 2012 +0100
+++ b/Makefile Tue Apr 03 17:35:02 2012 +0100
@@ -17,7 +17,7 @@
setup-useradd: installfiles useradd inituser
# WARNING: this is experimental
-setup-windows: installfiles windows-add inituser-windows
+setup-windows: installfiles adduser-windows inituser-windows
installetc:
$(INSTALL) -d $(DESTDIR)$(ETCDIR)
@@ -67,13 +67,15 @@
--comment "Mercurial repositories" $(NEWUSER)
# WARNING: this is experimental
-windows-add:
- net user $(NEWUSER) foo /add
+adduser-windows:
+ net user $(NEWUSER) /add
inituser:
su -l -c "$(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)" $(NEWUSER)
# WARNING: this is experimental
inituser-windows:
- ssh ${NEWUSER}@localhost "sh $(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)"
+ mkdir /home/$(NEWUSER)
+ chmod 755 $(DESTDIR)$(LIBDIR)/init/*
+ ssh $(NEWUSER)@localhost "sh $(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)"