equal
deleted
inserted
replaced
15 |
15 |
16 # WARNING: this is experimental |
16 # WARNING: this is experimental |
17 setup-useradd: installfiles useradd inituser |
17 setup-useradd: installfiles useradd inituser |
18 |
18 |
19 # WARNING: this is experimental |
19 # WARNING: this is experimental |
20 setup-windows: installfiles windows-add inituser-windows |
20 setup-windows: installfiles adduser-windows inituser-windows |
21 |
21 |
22 installetc: |
22 installetc: |
23 $(INSTALL) -d $(DESTDIR)$(ETCDIR) |
23 $(INSTALL) -d $(DESTDIR)$(ETCDIR) |
24 $(INSTALL) -m 644 -t $(DESTDIR)$(ETCDIR) \ |
24 $(INSTALL) -m 644 -t $(DESTDIR)$(ETCDIR) \ |
25 src/init/conf/access.conf |
25 src/init/conf/access.conf |
65 useradd --system --shell /bin/sh \ |
65 useradd --system --shell /bin/sh \ |
66 --home /var/lib/mercurial-server --create-home \ |
66 --home /var/lib/mercurial-server --create-home \ |
67 --comment "Mercurial repositories" $(NEWUSER) |
67 --comment "Mercurial repositories" $(NEWUSER) |
68 |
68 |
69 # WARNING: this is experimental |
69 # WARNING: this is experimental |
70 windows-add: |
70 adduser-windows: |
71 net user $(NEWUSER) foo /add |
71 net user $(NEWUSER) /add |
72 |
72 |
73 inituser: |
73 inituser: |
74 su -l -c "$(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)" $(NEWUSER) |
74 su -l -c "$(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)" $(NEWUSER) |
75 |
75 |
76 # WARNING: this is experimental |
76 # WARNING: this is experimental |
77 inituser-windows: |
77 inituser-windows: |
78 ssh ${NEWUSER}@localhost "sh $(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)" |
78 mkdir /home/$(NEWUSER) |
|
79 chmod 755 $(DESTDIR)$(LIBDIR)/init/* |
|
80 ssh $(NEWUSER)@localhost "sh $(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)" |
79 |
81 |