fix nginx conf linking failing

This commit is contained in:
JOLIMAITRE Matthieu 2024-02-04 02:47:42 +01:00
parent 43feec227c
commit 2fa4ab9b12

View file

@ -24,6 +24,7 @@ server {
const conf_file_path = path.join(conf_dir, domain + ".conf"); const conf_file_path = path.join(conf_dir, domain + ".conf");
const enabled_conf_file_path = path.join(this.enabled_conf_dir, domain + ".conf"); const enabled_conf_file_path = path.join(this.enabled_conf_dir, domain + ".conf");
await Deno.writeTextFile(conf_file_path, conf_file_content); await Deno.writeTextFile(conf_file_path, conf_file_content);
await Deno.remove(enabled_conf_file_path, { recursive: true });
await run("ln", "-s", await Deno.realPath(conf_file_path), enabled_conf_file_path); await run("ln", "-s", await Deno.realPath(conf_file_path), enabled_conf_file_path);
await this.reload(); await this.reload();
return conf_file_path; return conf_file_path;