mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
fix seed
This commit is contained in:
@@ -96,6 +96,10 @@ async function main() {
|
||||
async function reEncryptSecrets() {
|
||||
const secretOld = process.env['COOLIFY_SECRET_KEY'];
|
||||
const secretNew = process.env['COOLIFY_SECRET_KEY_BETTER'];
|
||||
if (!secretNew) {
|
||||
console.log('no new secret found');
|
||||
return;
|
||||
}
|
||||
if (secretOld !== secretNew) {
|
||||
console.log('secrets are different, so re-encrypting');
|
||||
const secrets = await prisma.secret.findMany();
|
||||
|
||||
Reference in New Issue
Block a user