Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit f7d05fc

Browse files
authored
Keep the restart policy after container update
When the exoframe-server container updates itself it starts a new container with the updated image and copies some of the configuration of the current container over. This change now includes the RestartPolicy, so the updated server behaves the same way in regards to crashes, computer restarts etc.
1 parent cc2d415 commit f7d05fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/update.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ module.exports = fastify => {
101101
Labels: oldServerInfo.Config.Labels,
102102
HostConfig: {
103103
Binds: oldServerInfo.HostConfig.Binds,
104+
RestartPolicy: oldServerInfo.HostConfig.RestartPolicy,
104105
},
105106
};
106107
// start new self

0 commit comments

Comments
 (0)