2025-04-29 21:44:04 +02:00

21 lines
645 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
set -xeuo pipefail
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
# Si le fichier de conf n'existe PAS encore, on copie l'exemple
if [ ! -f /app/data/slskd.yml ]; then
echo " Copie de la config d'exemple dans /app/data/slskd.yml"
cp /app/code/slskd.yml.example /app/data/slskd.yml
chown cloudron:cloudron /app/data/slskd.yml
else
echo " Utilisation de /app/data/slskd.yml (existant)"
fi
exec gosu cloudron /app/code/slskd \
--config /app/data/slskd.yml \
--http-port ${SLSKD_HTTP_PORT:-5030} \
--https-port ${SLSKD_HTTPS_PORT:-5031} \
--listen-port ${SLSKD_SLSK_LISTEN_PORT:-50300}