deploy.sh: fix LLM unit relink (unquote source path so ${unit} expands on the remote)
The relink loop wrapped the source path in single quotes, which shipped a
literal ${unit} to the remote and created a dangling symlink
(/etc/systemd/system/frank-default-large.service -> .../${unit}.service),
so 'systemctl enable' failed with 'unit does not exist'. The path has no
spaces; unquoting lets ${unit} expand on the remote for both source and
destination.
This commit is contained in:
1 parent
fbfbc5c6db
commit
33438f223e
1 file changed
+4
-1
+4
-1
@@ -219,7 +219,10 @@ fi
|
|||||||
|
|
||||||
echo '[4/5] Relinking LLM units and restarting LLM services...'
|
echo '[4/5] Relinking LLM units and restarting LLM services...'
|
||||||
for unit in ${LLM_UNITS[$TARGET]}; do
|
for unit in ${LLM_UNITS[$TARGET]}; do
|
||||||
${SUDO} ln -sf '${REMOTE_DIR[$TARGET]}/scripts/\${unit}.service' /etc/systemd/system/\${unit}.service
|
# No quotes around the path: ${unit} must expand on the remote (the path
|
||||||
|
# has no spaces). Quoting it would ship a literal ${unit} and create a
|
||||||
|
# dangling symlink (2026-08-22 bug).
|
||||||
|
${SUDO} ln -sf ${REMOTE_DIR[$TARGET]}/scripts/\${unit}.service /etc/systemd/system/\${unit}.service
|
||||||
done
|
done
|
||||||
${SUDO} systemctl daemon-reload
|
${SUDO} systemctl daemon-reload
|
||||||
for svc in ${LLM_SERVICES[$TARGET]}; do
|
for svc in ${LLM_SERVICES[$TARGET]}; do
|
||||||
|
|||||||
Reference in new issue
Block a user