Skip to content

Commit

Permalink
use rc tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Pässler committed Apr 9, 2016
1 parent 7bea5a3 commit 45305de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -9,7 +9,7 @@ The HopGlass Server collects data from Freifunk networks and processes it to be

**i.e. Debian Jessie or newer, Ubuntu 15.04 or newer**

1. Run `$ curl -sL https://raw.githubusercontent.com/plumpudding/hopglass-server/master/scripts/bootstrap.sh | sudo -E bash -`
1. Run `$ curl -sL https://raw.githubusercontent.com/plumpudding/hopglass-server/0.1rc1/scripts/bootstrap.sh | sudo -E bash -`
2. Review and edit the default configuration located at `/etc/hopglass-server/default/config.json`.
3. Start the HopGlass Server: `$ sudo systemctl start hopglass-server@default`
4. (Optional) Automatically start the HopGlass Server at boot: `$ sudo systemctl enable hopglass-server@default`
Expand Down
4 changes: 2 additions & 2 deletions systemd/hopglass-server@.service → hopglass-server@.service
Expand Up @@ -5,8 +5,8 @@ Description=The HopGlass Server collects data from the Freifunk network (%I)
Type=simple
User=hopglass
Group=hopglass
WorkingDirectory=/opt/hopglass/server
ExecStart=/usr/bin/node --harmony /opt/hopglass/server/hopglass-server.js --config /etc/hopglass-server/%I/config.json
WorkingDirectory=/etc/hopglass-server/%I/
ExecStart=/usr/bin/node --harmony /opt/hopglass/server/hopglass-server.js
Restart=always

[Install]
Expand Down
4 changes: 2 additions & 2 deletions scripts/bootstrap.sh
Expand Up @@ -15,15 +15,15 @@ adduser --system --home=$INSTALL_DIR --group hopglass

#Clone and install dependencies
su - hopglass --shell /bin/bash
git clone https://github.com/plumpudding/hopglass-server server
git clone https://github.com/plumpudding/hopglass-server -b 0.1rc1 server
cd server
npm install
exit

#Symlink systemd service and copy config file:
mkdir -p /etc/hopglass-server/default
cp $INSTALL_DIR/server/config.json.example /etc/hopglass-server/default/config.json
ln -s $INSTALL_DIR/server/systemd/hopglass-server@.service /etc/systemd/system/hopglass-server@.service
ln -s $INSTALL_DIR/server/hopglass-server@.service /etc/systemd/system/hopglass-server@.service

echo
echo '######################################################'
Expand Down

0 comments on commit 45305de

Please sign in to comment.