CI: Remove api key on db dump
This commit is contained in:
parent
00f039dbaa
commit
4d1502d092
|
@ -259,6 +259,9 @@ dump-database:
|
|||
- cd "${DOCROOT}"
|
||||
- ./bin/migrate
|
||||
script:
|
||||
- >-
|
||||
mysql -h "${MYSQL_HOST}" -u "${MYSQL_USER}" -p"${MYSQL_PASSWORD}" "${MYSQL_DATABASE}"
|
||||
-e 'UPDATE users SET api_key="" WHERE name="admin"'
|
||||
- >-
|
||||
mysqldump -h "${MYSQL_HOST}" -u "${MYSQL_USER}" -p"${MYSQL_PASSWORD}" "${MYSQL_DATABASE}"
|
||||
> "${HOMEDIR}/initial-install.sql"
|
||||
|
|
Loading…
Reference in New Issue