aboutsummaryrefslogtreecommitdiff
path: root/app/backup/build
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-04-15 14:24:41 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-04-15 14:24:41 +0200
commit83745f737ab5143f7204c2b84425c727266a0d84 (patch)
tree0161ed04562e5c347c5dbe400dbd6d53115254b3 /app/backup/build
parent8cf1b0c3e44f481abd7e07d0e793bd444a81fe52 (diff)
downloadinfrastructure-83745f737ab5143f7204c2b84425c727266a0d84.tar.gz
infrastructure-83745f737ab5143f7204c2b84425c727266a0d84.zip
Deployment on Nomad
Diffstat (limited to 'app/backup/build')
-rw-r--r--app/backup/build/backup-psql/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/backup/build/backup-psql/default.nix b/app/backup/build/backup-psql/default.nix
index 1ded395..5d2dec7 100644
--- a/app/backup/build/backup-psql/default.nix
+++ b/app/backup/build/backup-psql/default.nix
@@ -17,17 +17,18 @@ in
buildPhase = ''
cat > backup-psql <<EOF
- #!${pkgs.bash}/bin/bash
- export PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages}
- python3 $out/lib/backup-psql.py
+ #!${pkgs.bash}/bin/bash
+ export PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages}
+ ${python-with-my-packages}/bin/python3 $out/lib/backup-psql.py
EOF
+
chmod +x backup-psql
'';
installPhase = ''
mkdir -p $out/{bin,lib}
cp *.py $out/lib/backup-psql.py
- cp backup-psql $out/bin/backup-sql
+ cp backup-psql $out/bin/backup-psql
'';
}