CI: Remove api key on db dump
This commit is contained in:
parent
00f039dbaa
commit
4d1502d092
|
@ -259,6 +259,9 @@ dump-database:
|
||||||
- cd "${DOCROOT}"
|
- cd "${DOCROOT}"
|
||||||
- ./bin/migrate
|
- ./bin/migrate
|
||||||
script:
|
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}"
|
mysqldump -h "${MYSQL_HOST}" -u "${MYSQL_USER}" -p"${MYSQL_PASSWORD}" "${MYSQL_DATABASE}"
|
||||||
> "${HOMEDIR}/initial-install.sql"
|
> "${HOMEDIR}/initial-install.sql"
|
||||||
|
|
Loading…
Reference in New Issue