Make Ente CLI usable out of the box

This commit is contained in:
Your Name
2025-09-29 22:05:24 -06:00
parent a8b22a95c8
commit b38bd6a249
3 changed files with 13 additions and 1 deletions

View File

@@ -27,6 +27,11 @@ HOME_DIR="/app/data/home"
export HOME="$HOME_DIR"
mkdir -p "$HOME"
# Ensure CLI data directory persists across restarts
CLI_DATA_PERSIST="/app/data/cli-data"
mkdir -p "$CLI_DATA_PERSIST"
# Prevent infinite loops through startup flag
if [ -f "/app/data/startup_in_progress" ]; then
if [ "$(find /app/data/startup_in_progress -mmin +2)" ]; then