1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-07-26 11:44:59 +00:00

Clear cache and reload config cache

This commit is contained in:
CrazyMax 2020-07-03 11:31:15 +02:00
parent 43851cf363
commit efd41624b0
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7

View file

@ -61,6 +61,10 @@ counttables=$(echo 'SHOW TABLES' | ${dbcmd} "$DB_NAME" | wc -l)
echo "Updating database schema..."
lnms migrate --force --no-ansi --no-interaction
echo "Clear cache"
su-exec librenms:librenms php artisan cache:clear --no-interaction
su-exec librenms:librenms php artisan config:cache --no-interaction
if [ "${counttables}" -eq "0" ]; then
echo "Creating admin user..."
lnms user:add --password=librenms --email=librenms@librenms.docker --role=admin --no-ansi --no-interaction librenms