Roll back change to allow creating API keys with custom value

This commit is contained in:
Alejandro Celaya
2023-09-21 08:58:05 +02:00
parent f6b1cc7556
commit 6db46b50e9
8 changed files with 38 additions and 62 deletions

View File

@@ -12,8 +12,13 @@ fi
php vendor/bin/shlink-installer init ${flags}
# TODO If INIT_API_KEY was provided, create an initial API key
#if [ -n "${INIT_API_KEY}" ]; then
# php bin/cli api-key:initial "${INIT_API_KEY}"
#fi
# Periodically run visit:locate every hour, if ENABLE_PERIODIC_VISIT_LOCATE=true was provided and running as root
# ENABLE_PERIODIC_VISIT_LOCATE is deprecated. Remove cron support in Shlink 4.0.0
# FIXME: ENABLE_PERIODIC_VISIT_LOCATE is deprecated. Remove cron support in Shlink 4.0.0
if [ "${ENABLE_PERIODIC_VISIT_LOCATE}" = "true" ] && [ "${SHLINK_USER_ID}" = "root" ]; then
echo "Configuring periodic visit location..."
echo "0 * * * * php /etc/shlink/bin/cli visit:locate -q" > /etc/crontabs/root