79108128

Date: 2024-10-20 22:02:44
Score: 0.5
Natty:
Report link

I'm gonna send a piece of code of what I'm doing in the user-data.

#!bin/bash

echo 'export MY_VAR="some value"' >> /home/ubuntu/.bashrc
source /home/ubuntu/.bashrc

If your user start some process our enter by means of ssh, you'll get those variables.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: gleitonfranco