Skip to content

Commit

Permalink
fix(examples): adding export to .profile
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasehlert committed Aug 4, 2022
1 parent 9fb2425 commit 267a1f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/ubuntu/templates/user-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ WantedBy=default.target
EOF

echo export XDG_RUNTIME_DIR=/run/user/$user_id >>/home/$user_name/.profile
echo export XDG_RUNTIME_DIR=/run/user/$user_id >>/home/$user_name/.bashrc

systemctl daemon-reload
systemctl enable [email protected]
systemctl start [email protected]

curl -fsSL https://get.docker.com/rootless >>/opt/rootless.sh && chmod 755 /opt/rootless.sh
su -l $user_name -c /opt/rootless.sh
echo export DOCKER_HOST=unix:///run/user/$user_id/docker.sock >>/home/$user_name/.profile
echo export PATH=/home/$user_name/bin:$PATH >>/home/$user_name/.profile
echo export DOCKER_HOST=unix:///run/user/$user_id/docker.sock >>/home/$user_name/.bashrc
echo export PATH=/home/$user_name/bin:$PATH >>/home/$user_name/.bashrc

# Run docker service by default
loginctl enable-linger $user_name
Expand Down

0 comments on commit 267a1f7

Please sign in to comment.