fix postgres cmd and initdb cmd
This commit is contained in:
4
lib.nix
4
lib.nix
@@ -107,9 +107,9 @@ in
|
|||||||
text = ''
|
text = ''
|
||||||
if [ ! -d "${data_dir}" ]; then
|
if [ ! -d "${data_dir}" ]; then
|
||||||
echo "Database directory does not exist. Initializing"
|
echo "Database directory does not exist. Initializing"
|
||||||
${package}/bin/initdb -D ${data_dir}
|
${package}/bin/initdb -D ${data_dir} --no-instructions
|
||||||
fi
|
fi
|
||||||
${package}/bin/postgres -D=${data_dir} --config-file=${configFile}
|
${package}/bin/postgres -D${data_dir} --config-file=${configFile}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user