mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
portainer
This commit is contained in:
parent
011a85368e
commit
e4f5694729
@ -9,4 +9,5 @@ RUN chmod +x /init_portainer
|
||||
FROM portainer/portainer-ce:2.19.0
|
||||
LABEL maintainer="websoft9<help@websoft9.com>"
|
||||
LABEL version="2.19.0"
|
||||
|
||||
COPY --from=builder /init_portainer /
|
@ -10,7 +10,8 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
filePath := "/var/websoft9/portainer_password"
|
||||
|
||||
filePath := "/var/websoft9/credential"
|
||||
|
||||
_, err := os.Stat(filePath)
|
||||
if os.IsNotExist(err) {
|
||||
@ -32,7 +33,7 @@ func main() {
|
||||
fmt.Println("-----portainer_admin_user: admin, portainer_admin_password: " + string(content) + " ------")
|
||||
|
||||
// call portainer
|
||||
cmd := exec.Command("./portainer", "--admin-password-file", "/portainer_password")
|
||||
cmd := exec.Command("./portainer", "--admin-password-file", filePath)
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user