fix installer

This commit is contained in:
undefined committed 2025-02-11 22:30:58 +08:00
1 parent bbc8e82863
commit 1be6e6c160
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -22,8 +22,6 @@ echo "// File created by Hydro install script\n" >/tmp/install.js
cat >/tmp/install.b64 << EOF123
%PLACEHOLDER%
EOF123
cat /tmp/install.b64 | base64 -d >>/tmp/install.js.gz
rm /tmp/install.b64
gunzip /tmp/install.js.gz
cat /tmp/install.b64 | base64 -d | gunzip >/tmp/install.js
node /tmp/install.js "$@"
set +e
+1 -1
View File
@@ -422,7 +422,7 @@ ${nixConfBase}`);
},
{
init: 'install.caddy',
skip: () => !exec('caddy version').code || installAsJudge || noCaddy || !existsSync(`${process.env.HOME}/.hydro/Caddyfile`),
skip: () => installAsJudge || noCaddy || existsSync(`${process.env.HOME}/.hydro/Caddyfile`),
hidden: installAsJudge,
operations: [
'nix-env -iA nixpkgs.caddy',