- Refactored the dashboard html into seperate pages and all the necessary components - Added login and secured api routes / debugged getting system working on a tailnet. - added some functionality to the debugging and health endpoints - added in a new phone contact import and debugged.
75 lines
1.6 KiB
Markdown
75 lines
1.6 KiB
Markdown
# Scripts Directory
|
|
|
|
This directory contains utility and deployment scripts for the SMS Campaign Manager.
|
|
|
|
## Deployment Scripts
|
|
|
|
### deploy-android.sh
|
|
Main deployment script for Android device setup.
|
|
|
|
**Usage:**
|
|
```bash
|
|
./scripts/deploy-android.sh
|
|
```
|
|
|
|
**What it does:**
|
|
- Tests connectivity to Android device
|
|
- Deploys Python servers to `~/projects/sms-campaign-manager/`
|
|
- Deploys shell scripts to `~/bin/`
|
|
- Starts all Android services
|
|
- Verifies deployment success
|
|
|
|
### deploy-to-android.sh
|
|
Alternative deployment script (legacy).
|
|
|
|
### update-termux-server.sh
|
|
Updates the Termux SMS API server on Android device.
|
|
|
|
**Usage:**
|
|
```bash
|
|
./scripts/update-termux-server.sh
|
|
```
|
|
|
|
## Utility Scripts
|
|
|
|
### auto.sh
|
|
Automatic ADB connection script.
|
|
|
|
**Usage:**
|
|
```bash
|
|
./scripts/auto.sh
|
|
```
|
|
|
|
**What it does:**
|
|
- Automatically connects to Android device via ADB
|
|
- Handles device discovery and connection setup
|
|
|
|
### ui.sh
|
|
Terminal UI script for interactive management.
|
|
|
|
### fix-database.sh
|
|
Database maintenance and repair script.
|
|
|
|
**Usage:**
|
|
```bash
|
|
./scripts/fix-database.sh
|
|
```
|
|
|
|
**Caution:** This script modifies the database. Back up `data/campaign.db` before running.
|
|
|
|
## Environment Requirements
|
|
|
|
All scripts expect these environment variables to be set in `.env`:
|
|
- `PHONE_IP` - Android device IP address (Tailscale IP recommended)
|
|
- `ADB_PORT` - ADB port (default: 5555)
|
|
- `TERMUX_API_PORT` - Termux API port (default: 5001)
|
|
|
|
## SSH Configuration
|
|
|
|
Scripts use SSH to connect to Android device on port 8022:
|
|
```bash
|
|
ssh android-dev@YOUR_PHONE_IP -p 8022
|
|
```
|
|
|
|
Ensure SSH keys are set up for passwordless authentication.
|