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:
parent
43851cf363
commit
efd41624b0
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue