Deploy Ladill QR Plus / deploy (push) Failing after 1s
Utility QR types only (URL, WiFi, link list, business, app download) with SSO, Billing API integration, public /q resolver, and qr-plus:import for platform migration. vCard and commerce types stay on the platform. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
410 B
Bash
Executable File
22 lines
410 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
usage() {
|
|
echo "Usage: ladill-hosting-user <username> <base64-command>" >&2
|
|
exit 64
|
|
}
|
|
|
|
[[ $# -eq 2 ]] || usage
|
|
|
|
username="$1"
|
|
payload_b64="$2"
|
|
|
|
if [[ ! "$username" =~ ^[A-Za-z_][A-Za-z0-9_-]*$ ]]; then
|
|
echo "Invalid username: $username" >&2
|
|
exit 64
|
|
fi
|
|
|
|
command="$(printf '%s' "$payload_b64" | base64 --decode)"
|
|
|
|
exec runuser -u "$username" -- bash -lc "$command"
|