docker/fdroid/entrypoint.sh

17 lines
384 B
Bash
Executable File

#!/bin/bash
(cd /repo/
fdroid init
sed -i \
-e "/repo_url/s .* repo_url:\ https://$BASE_URL/repo " \
-e "/repo_name/s .* repo_name:\ \"$REPO_NAME\" " \
config.yml
)
get_apks.sh
echo "$CRON_APP_UPDATE /usr/local/bin/get_apks.sh >> /var/log/cron.log 2>&1" | crontab -
/etc/init.d/cron start