git.iko.soy/typeable/nixpkgs
on master help sign in
influxdb service: fixup postStart script to handle TLS
commit662b409b72a4794c1fe0a080a0551817663b9bc2 authorKranium Gikos <kranium@gikos.net> dateMon 18 Sep 2017, 19:56 (9 years ago) parentb5a5d0b
1 file changed+1−1
nixos/modules/services/databases/influxdb.nix+1−1
nixos/modules/services/databases/influxdb.nix+1−1
@@ -171,7 +171,7 @@ in
171171 if [ "$(id -u)" = 0 ]; then chown -R ${cfg.user}:${cfg.group} ${cfg.dataDir}; fi
172172 '';
173173 postStart = mkBefore ''
174− until ${pkgs.curl.bin}/bin/curl -s -o /dev/null 'http://127.0.0.1${toString configOptions.http.bind-address}'/ping; do
174+ until ${pkgs.curl.bin}/bin/curl -s -o /dev/null ${if configOptions.http.https-enabled then "-k https" else "http"}://127.0.0.1${toString configOptions.http.bind-address}/ping; do
175175 sleep 1;
176176 done
177177 '';