mirror of
https://github.com/nmasur/dotfiles
synced 2026-09-16 01:08:10 +00:00
feat(services): integrate api service for flame
This commit is contained in:
@@ -37,6 +37,18 @@ in
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Refresh collation version if glibc was upgraded across system releases
|
||||
systemd.services.postgresql-setup = {
|
||||
preStart = ''
|
||||
while ! ${config.services.postgresql.package}/bin/psql -d postgres -tAc 'SELECT 1' >/dev/null 2>&1; do
|
||||
if ! systemctl is-active --quiet postgresql.service; then break; fi
|
||||
sleep 0.1
|
||||
done
|
||||
${config.services.postgresql.package}/bin/psql -d postgres -tAc 'ALTER DATABASE template1 REFRESH COLLATION VERSION;' || true
|
||||
${config.services.postgresql.package}/bin/psql -d postgres -tAc 'ALTER DATABASE postgres REFRESH COLLATION VERSION;' || true
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user