Skip to content

Commit

Permalink
#180 patch
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdrgn2k authored Jan 29, 2020
1 parent f935762 commit a97ec3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/ssb/install
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ sudo sudo npm install ssb-server -g --unsafe-perm
currentUser=$USER

# Copy SYSTEMD service to correct location
sudo cp "$BASE_DIR/ssb.service" /etc/systemd/system/ssb.service
sudo cp "$BASE_DIR/ssb.service" /tmp/ssb.service
# Copy repplace __USER__ place holder to current user
sudo sed -i "s|__USER__|${currentUser}|g" /etc/systemd/system/ssb.service
sudo sed -i "s|__USER__|${currentUser}|g" /tmp/ssb.service
sudo mv /tmp/ssb.service /etc/systemd/system/ssb.service

# Reload, Enable and start SSB Service
sudo systemctl daemon-reload
Expand Down

0 comments on commit a97ec3f

Please sign in to comment.