Aws Lightsail User Data script not working as expected during Snapshot

Viewed 31

Hey eveyone i want to create instance in lightsail with snapshots but User Data not working as expected.

Here is the directory files

User Data:

#!/bin/bash
screen -S client
cd clients
./target/release/client
screen -a -d 

Script above should creates new screen > moving to clients file > running code > detteaching the screen

But its not even creating new screen in this directory. What can be wrong ?

0 Answers
Related