gitignore fix

This commit is contained in:
Daan
2025-06-04 23:18:29 +02:00
parent 57aad4ea1c
commit 2768bd4dd0
3 changed files with 21 additions and 23 deletions

2
.gitignore vendored
View File

@@ -4,7 +4,9 @@
#
# Binaries for programs and plugins
*
!*/
!*.*
*.exe
*.exe~
*.dll

View File

@@ -1,8 +0,0 @@
#!/bin/bash
echo "Generating..."
openssl genpkey -algorithm RSA -out ./hmac_key.pem -pkeyopt rsa_keygen_bits:4096
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -keyout api_key.pem -out api_cert.pem \
-subj "/C=NL/ST=Noord-Holland/L=Amsterdam/O=ExOrg/OU=IT/CN=localhost"

View File

@@ -94,6 +94,9 @@ func RetrieveTokenNames() []string {
}
func InsertTask(name, uuid, command string, nodeids []string, date string, expire time.Time) error {
log.Println(name, uuid, command, nodeids, date, expire)
/*
for _, singleNodeid := range nodeids {
var count int
err := db.QueryRow(declStat.CountDuplTasks, command, singleNodeid).Scan(&count)
@@ -113,6 +116,7 @@ func InsertTask(name, uuid, command string, nodeids []string, date string, expir
}
}
}
*/
return nil
}