Commit 6f819a82 authored by squbs's avatar squbs

sudo wrap service creation

parent 03fa4d00
......@@ -29,6 +29,9 @@ For Raspberry Pi 2/3:
curl https://raw.githubusercontent.com/straks/straks-node/master/bootstrap-host-armhf.sh | sh
You will most likely need to run the above twice, if your user is not part of the Docker group or its a new installation of Docker. Log out and then in again and ensure that user is a member of the docker group (run `id`). User will also need `sudo` permissions.
Use `-H 'Cache-Control: no-cache'` with the curl command to return non-cached data from the web server.
Quick Start
-----------
......
......@@ -18,7 +18,6 @@ STAK_IMAGE=${STAK_IMAGE:-squbs/straks-node:1.14.5-armhf}
#free -m
curl -fsSL get.docker.com -o /tmp/get-docker.sh
sh /tmp/get-docker.sh
......@@ -43,8 +42,7 @@ docker volume create --name=straks-data
docker run -v straks-data:/straks --rm $STAK_IMAGE straks_init
# Start straks-node via systemd and docker
wget https://raw.githubusercontent.com/straks/straks-node/master/init/docker-straks-node-armhf.service
sudo mv docker-straks-node-armhf.service /etc/systemd/system/docker-straks-node.service
sudo sh -c 'curl https://raw.githubusercontent.com/straks/straks-node/master/init/docker-straks-node.service > /etc/systemd/system/docker-straks-node.service'
sudo systemctl enable docker-straks-node.service
set +ex
......
......@@ -42,7 +42,7 @@ docker volume create --name=straks-data
docker run -v straks-data:/straks --rm $STAK_IMAGE straks_init
# Start straks-node via systemd and docker
sudo curl https://raw.githubusercontent.com/straks/straks-node/master/init/docker-straks-node.service > /etc/systemd/system/docker-straks-node.service
sudo sh -c 'curl https://raw.githubusercontent.com/straks/straks-node/master/init/docker-straks-node.service > /etc/systemd/system/docker-straks-node.service'
sudo systemctl enable docker-straks-node.service
set +ex
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment