https://github.com/valerybugakov/lamassu-updater
https://github.com/valerybugakov/lamassu-updater
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/valerybugakov/lamassu-updater
- Owner: valerybugakov
- Created: 2016-03-18T23:22:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-19T07:33:21.000Z (about 10 years ago)
- Last Synced: 2025-03-10T19:50:16.267Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Usage
========
Updater machine
------------
Change HOSTNAME in config.json `{ host: "HOSTNAME" }`
Change deviceId in config.json `{ deviceId: "TestMachine" }` that id will be used to
identify machine when sending updates.
Copy certs folder from server machine.
```sh
git clone https://github.com/valerybugakov/lamassu-updater.git
cd lamassu-updater
scp -r user@host:/path/to/generated/cetrs certs
npm start
```
Add upstart job (for new machines)
Create file:
```sh
sudo nano /etc/init/rce-client.conf
```
Copy paste:
```
description "rce-client"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 3 60
script
chdir /root/rce-client/
exec node updater
end script
```
Start:
```sh
start rce-client
```
Debug
```sh
tail -f /var/log/upstart/rce-client.log
```