We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89eb56c commit 461ab04Copy full SHA for 461ab04
1 file changed
generate/gendb.bat
@@ -100,8 +100,22 @@ if not "!ec!"=="0" (
100
endlocal & exit /b 1
101
)
102
103
+ping -n 3 127.0.0.1
104
+
105
:: После initdb: у initdb создаются собственные postgresql.conf/pg_hba.conf.
-del "%DATA_DIR%\pg_hba.conf" "%DATA_DIR%\postgresql.conf"
106
+for %%F in ("pg_hba.conf" "postgresql.conf") do (
107
+ if exist "%DATA_DIR%\%%~F" (
108
+ attrib -r -s -h "%DATA_DIR%\%%~F" >nul 2>nul
109
+ del /f /q /a "%DATA_DIR%\%%~F" >nul 2>nul
110
111
+ echo [WARN] Не удалось удалить: "%DATA_DIR%\%%~F"
112
+ ) else (
113
+ echo [OK] Удалён: "%DATA_DIR%\%%~F"
114
+ )
115
116
+ echo [INFO] Файл не найден: "%DATA_DIR%\%%~F"
117
118
+)
119
120
:: Удаляем временный каталог
121
if exist "%TMP_DIR%" rd /s /q "%TMP_DIR%"
0 commit comments