Age | Commit message (Collapse) | Author | Files | Lines |
|
If cychedelic is ever started manually, using a pre-existing data
volume, the system will believe the previous instance is using a
specific random project name and may not properly shutdown the
user-initiated instance on a rebuild.
Simply attempting to stop the service using its default name will catch
this, and not cause any problems in the general case.
Signed-off-by: Malfurious <m@lfurio.us>
|
|
The nested single quotes in these variables were not being interpreted
correctly at their usage locations (the quoted project name was being
sent to the docker cli). The quotes were initially wanted for the case
where there is not yet any previous_slug, as the command
"docker compose --project-name down" is ill-formed.
Since we know the actual slug values will not contain spaces, we can do
away with the quotes. Instead, prevent $prev from containing any
content in the special case described above. This is accomplished by
the conditional check [ -n "$prev" ].
Signed-off-by: Malfurious <m@lfurio.us>
|
|
This is a merged version of a normal service builder and a cychedelic
self-builder.
Signed-off-by: Malfurious <m@lfurio.us>
|