fix
This commit is contained in:
@@ -99,6 +99,7 @@ in {
|
|||||||
${lib.concatMapStringsSep "\n" (name: ''
|
${lib.concatMapStringsSep "\n" (name: ''
|
||||||
$PSQL -tAc "ALTER DATABASE ${name}_db OWNER TO ${name}_user;"
|
$PSQL -tAc "ALTER DATABASE ${name}_db OWNER TO ${name}_user;"
|
||||||
$PSQL -d "${name}_db" -tAc "REINDEX DATABASE ${name}_db;"
|
$PSQL -d "${name}_db" -tAc "REINDEX DATABASE ${name}_db;"
|
||||||
|
$PSQL -d "${name}_db" -tAc "ALTER DATABASE ${name}_db REFRESH COLLATION VERSION;"
|
||||||
|
|
||||||
if [ -f "${config.sops.secrets."${lib.toUpper name}".path}" ]; then
|
if [ -f "${config.sops.secrets."${lib.toUpper name}".path}" ]; then
|
||||||
PASS=$(grep "^DB_PASSWORD=" "${config.sops.secrets."${lib.toUpper name}".path}" | cut -d'=' -f2-)
|
PASS=$(grep "^DB_PASSWORD=" "${config.sops.secrets."${lib.toUpper name}".path}" | cut -d'=' -f2-)
|
||||||
|
|||||||
Reference in New Issue
Block a user