Remove /var/db/cloud-instance file on -u

This commit is contained in:
reykfloeter 2019-06-05 22:01:21 +02:00
parent b8ae4a13fc
commit 3be9707418

View file

@ -935,8 +935,10 @@ agent_unconfigure(void)
(void)fileout("permit keepenv persist :wheel as root\n"
"permit keepenv nopass root\n", "w", "/etc/doas.conf");
}
/* Remove cloud-instance file */
(void)unlink("/var/db/cloud-instance");
}
static char *
metadata_parse(char *s, size_t sz, enum strtype type)