mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-01-18 16:37:28 +01:00
11 lines
256 B
Bash
11 lines
256 B
Bash
#!/bin/sh
|
|
|
|
# Génère le contenu du fichier auth.txt à partir des variables d'environnement
|
|
echo -n "$USERNAME:$PASSWORD" | base64 > /auth.txt
|
|
|
|
# Démarrer nginx en arrière-plan
|
|
nginx -g 'daemon off;' &
|
|
|
|
# Exécute le script Python
|
|
exec python ./ntfy.py
|