mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
New CLI command to create the initial API key idempotently
This commit is contained in:
@@ -10,12 +10,17 @@ if [ -z "${GEOLITE_LICENSE_KEY}" ] || [ "${SKIP_INITIAL_GEOLITE_DOWNLOAD}" == "t
|
||||
flags="${flags} --skip-download-geolite"
|
||||
fi
|
||||
|
||||
# TODO If INITIAL_API_KEY was provided, create an initial API key
|
||||
#if [ -n "${INITIAL_API_KEY}" ]; then
|
||||
# flags="${flags} --initial-api-key=${INITIAL_API_KEY}"
|
||||
#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
|
||||
# If INITIAL_API_KEY was provided, create an initial API key
|
||||
if [ -n "${INITIAL_API_KEY}" ]; then
|
||||
php bin/cli api-key:initial "${INITIAL_API_KEY}"
|
||||
fi
|
||||
|
||||
# Periodically run visit:locate every hour, if ENABLE_PERIODIC_VISIT_LOCATE=true was provided and running as root
|
||||
# FIXME: ENABLE_PERIODIC_VISIT_LOCATE is deprecated. Remove cron support in Shlink 4.0.0
|
||||
|
||||
Reference in New Issue
Block a user