This commit is contained in:
Andras Bacsai
2022-11-29 09:19:10 +01:00
parent 3f078517a0
commit 513c4f9e29
5 changed files with 41 additions and 21 deletions

View File

@@ -12,9 +12,7 @@ async function main() {
await prisma.setting.create({
data: {
id: '0',
isRegistrationEnabled: true,
arch: process.arch,
DNSServers: '1.1.1.1,8.8.8.8'
}
});
} else {
@@ -23,11 +21,11 @@ async function main() {
id: settingsFound.id
},
data: {
id: '0',
isTraefikUsed: true,
id: '0'
}
});
}
// Create local docker engine
const localDocker = await prisma.destinationDocker.findFirst({
where: { engine: '/var/run/docker.sock' }
});
@@ -52,12 +50,10 @@ async function main() {
isAutoUpdateEnabled
}
});
// Create public github source
const github = await prisma.gitSource.findFirst({
where: { htmlUrl: 'https://github.com', forPublic: true }
});
const gitlab = await prisma.gitSource.findFirst({
where: { htmlUrl: 'https://gitlab.com', forPublic: true }
});
if (!github) {
await prisma.gitSource.create({
data: {
@@ -69,6 +65,10 @@ async function main() {
}
});
}
// Create public gitlab source
const gitlab = await prisma.gitSource.findFirst({
where: { htmlUrl: 'https://gitlab.com', forPublic: true }
});
if (!gitlab) {
await prisma.gitSource.create({
data: {