wrap-for-deploy.sh 610 B

12345678910111213
  1. pushd `dirname $0`
  2. cd ..
  3. rm -rf deployme
  4. mkdir deployme
  5. mv nixos.qcow2 deployme/nixos.qcow2
  6. echo "[theserver]" > deploy-addons/rclone.conf
  7. echo "type = sftp" >> deploy-addons/rclone.conf
  8. echo "host = localhost" >> deploy-addons/rclone.conf
  9. echo "user = root" >> deploy-addons/rclone.conf
  10. echo "key_pem = "$(awk '{printf "%s\\n", $0}' < ssh/generated) >> deploy-addons/rclone.conf
  11. cp -r ssh deployme/ssh
  12. cp -r deploy-addons/* deployme
  13. popd