This commit is contained in:
+11
-1
@@ -130,6 +130,15 @@ path.write_text(text.replace(needle, replacement))
|
||||
PY
|
||||
fi
|
||||
|
||||
python3 - <<'PY'
|
||||
from pathlib import Path
|
||||
p = Path("config.yaml")
|
||||
text = p.read_text()
|
||||
if "\nserver:" not in text:
|
||||
text += "\nserver:\n tls:\n enabled: true\n"
|
||||
p.write_text(text)
|
||||
PY
|
||||
|
||||
echo " config.yaml を生成/更新しました"
|
||||
echo ""
|
||||
|
||||
@@ -191,7 +200,8 @@ chmod 600 "${ENV_FILE}"
|
||||
|
||||
echo ""
|
||||
echo " 認証情報を ${ENV_FILE} (権限 0600) に書き出しました。"
|
||||
echo " 起動前に以下で読み込んでください:"
|
||||
echo " scripts/server.sh は起動時に ${ENV_FILE} を自動で読み込みます。"
|
||||
echo " 手動起動 (npm start 等) の場合のみ、事前に読み込んでください:"
|
||||
echo ""
|
||||
echo " source ${ENV_FILE}"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user