Load bundled personal defaults when no saved profile exists

This commit is contained in:
shenlei
2026-10-10 16:27:22 +09:00
parent 2eb9a6d81c
commit 10b10e5bdf
9 changed files with 87 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
config_dir=apps/meshport_lab/assets/config
if [ -f "$config_dir/default.private.toml" ]; then
cp "$config_dir/default.private.toml" "$config_dir/default.toml"
else
cp "$config_dir/default.example.toml" "$config_dir/default.toml"
fi
chmod 600 "$config_dir/default.toml"