Skip to content

Commit

Permalink
MSL-API: run user seeder
Browse files Browse the repository at this point in the history
Import admin accounts using seeder if admin accounts have been
configured, so that we don't have to do this manually.
  • Loading branch information
stsnel committed Jan 31, 2025
1 parent d40db09 commit f74c810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/images/msl-api/msl-api-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ FLUSH PRIVILEGES;
# Import admin account credentials for MSL-API seeder, as configured via Ansible.
if [ -f "/var/msl-api-seed-data/admin-passwd.csv" ]
then cp /var/msl-api-seed-data/admin-passwd.csv /var/www/msl_api/admin-passwd.csv
cd /var/www/msl_api
sudo -u www-data /usr/bin/php8.3 artisan db:seed --force --class=UserSeeder
fi

cd /var/www/msl_api
Expand Down

0 comments on commit f74c810

Please sign in to comment.