diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-04-15 14:57:54 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-04-15 14:57:54 +0200 |
commit | b2b26879cb6b038fb3b1514ad3ca7c07d9273ee4 (patch) | |
tree | 1ba929f97df064f7afdb3ec959e4fed40daa3e92 /app/backup/build/backup-psql/default.nix | |
parent | 83745f737ab5143f7204c2b84425c727266a0d84 (diff) | |
download | infrastructure-b2b26879cb6b038fb3b1514ad3ca7c07d9273ee4.tar.gz infrastructure-b2b26879cb6b038fb3b1514ad3ca7c07d9273ee4.zip |
replace os.system with subprocess.run
Diffstat (limited to 'app/backup/build/backup-psql/default.nix')
-rw-r--r-- | app/backup/build/backup-psql/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/backup/build/backup-psql/default.nix b/app/backup/build/backup-psql/default.nix index 5d2dec7..2cd8d93 100644 --- a/app/backup/build/backup-psql/default.nix +++ b/app/backup/build/backup-psql/default.nix @@ -18,7 +18,10 @@ in buildPhase = '' cat > backup-psql <<EOF #!${pkgs.bash}/bin/bash + export PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages} + export PATH=${python-with-my-packages}/bin:${pkgs.age}/bin:${pkgs.postgresql_14}/bin + ${python-with-my-packages}/bin/python3 $out/lib/backup-psql.py EOF |