Move SMS phone bridge from campaign_connector submodule into main repo

Consolidates the Termux SMS server code (previously in a separate
campaign_connector git submodule) into termux-sms/ at repo root.
Updates phone clone commands to use sparse checkout so only the
termux-sms/ directory is downloaded onto the Android device.

Bunker Admin
This commit is contained in:
2026-03-31 11:04:14 -06:00
parent 5d15b4cffa
commit 9321aeb263
18 changed files with 1609 additions and 7 deletions

View File

@@ -92,10 +92,12 @@ Open Termux on the phone and run:
```bash
# Clone the SMS server (first time only)
pkg install -y git && git clone https://gitea.bnkops.com/admin/campaign_connector.git ~/sms-server
pkg install -y git && git clone --depth 1 --filter=blob:none --sparse \
https://gitea.bnkops.com/admin/changemaker.lite.git ~/sms-server \
&& cd ~/sms-server && git sparse-checkout set termux-sms
# Run the setup script — paste your API key at the end
bash ~/sms-server/android/setup.sh YOUR_API_KEY_HERE
bash ~/sms-server/termux-sms/setup.sh YOUR_API_KEY_HERE
```
The setup script automatically:
@@ -113,7 +115,7 @@ When done, note the **Phone URL** displayed (e.g. `http://100.64.0.5:5001`).
After initial setup, install `termux-services` for reliable process management. This uses runit, a proper UNIX service supervisor that automatically restarts the server if it crashes:
```bash
cd ~/sms-server && bash android/setup-services.sh
cd ~/sms-server && bash termux-sms/setup-services.sh
```
This registers two supervised services: