Skip to content

Commit 1120608

Browse files
committed
Fix hot-reload: cp config in-place instead of mv to preserve Docker bind-mount inode
1 parent e23e7e4 commit 1120608

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mtproxymax.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ TOML_EOF
11741174
done
11751175

11761176
chmod 644 "$tmp"
1177-
mv "$tmp" "${CONFIG_DIR}/config.toml"
1177+
cp "$tmp" "${CONFIG_DIR}/config.toml" && rm -f "$tmp"
11781178
}
11791179

11801180
# Get comma-separated quoted list of enabled labels for config

0 commit comments

Comments
 (0)