Spaces:
Sleeping
Sleeping
Create entrypoint.sh
Browse files- entrypoint.sh +11 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
|
| 4 |
+
# Run restore before starting VS Code
|
| 5 |
+
python3 /restore.py || echo "[Restore] Skipped or failed"
|
| 6 |
+
|
| 7 |
+
# Start autobackup in background
|
| 8 |
+
python3 /backup.py &
|
| 9 |
+
|
| 10 |
+
# Start VS Code (code-server)
|
| 11 |
+
exec code-server --bind-addr 0.0.0.0:7860 --auth none /home/vscode
|