Selaa lähdekoodia

Added etc/passwd to .gitignore to avoid over-writing on updates

Key Networks 7 vuotta sitten
vanhempi
commit
0ae8ddf00b
3 muutettua tiedostoa jossa 10 lisäystä ja 3 poistoa
  1. 1 0
      .gitignore
  2. 9 3
      README.md
  3. 0 0
      etc/default.passwd

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
+etc/passwd
 etc/storage/
 node_modules/
 *.swp

+ 9 - 3
README.md

@@ -41,7 +41,13 @@ Where:
 
 Note that you need to log out and in again to apply the new group membership.
 
-##### 4. Start the app manually:
+##### 4. Copy the default passwd file
+To prevent git from over-writing your password file every time you pull updates from the repository, the etc/passwd file has been added to .gitignore.  So you need to copy the default file after the first time you do a git clone.  All these things ideally need to be done with a package installer script:
+```shell
+cp -v etc/default.passwd etc/passwd
+```
+
+##### 5. Start the app manually:
 ```shell
 npm start
 ```
@@ -52,14 +58,14 @@ PORT=3456 npm start
 
 To start the app automatically, something like [PM2](http://pm2.keymetrics.io) can be used.
 
-##### 5. Test access on http://localhost:3000
+##### 6. Test access on http://localhost:3000
   If the machine has a GUI and GUI web browser, then use it to access the app, otherwise use a CLI web browser like Lynx or curl:
 ```shell
 curl http://localhost:3000
 ```
 You should see the front page of the app (or the raw HTML with curl).
 
-##### 6. Remote access:
+##### 7. Remote access:
 For security reasons (until this app is battle-hardened and has been scrutinized by the ZT community), it currently listens only on the looback interface.  It can be reverse proxied by something like Nginx, but it would be best to access over an SSH tunnel at this stage.
 
 ###### SSH tunnel from Linux / Unix / macOS client

+ 0 - 0
etc/passwd → etc/default.passwd