Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| #!/bin/bash | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| ln -s "/mnt/c/Users/Daniel/Documents/homeflow" ~/homeflow | |
| ln -s "/mnt/c/Users/Daniel/Documents" ~/documents | |
| mkdir .ssh | |
| cp documents/id* .ssh/ | |
| sudo chmod 600 .ssh/* | |
| cd homeflow/attis | |
| git pull |
| #!/bin/bash | |
| target_branch="production" | |
| working_tree="PATH_TO_DEPLOY" | |
| while read oldrev newrev refname | |
| do | |
| branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
| if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
| { config, pkgs, lib, ... }: | |
| { | |
| # IOMMU configuration | |
| boot.kernelParams = [ "amd_iommu=on" "pcie_aspm=off" ]; | |
| boot.kernelModules = [ "kvm-amd" "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ]; | |
| boot.extraModprobeConfig = '' | |
| options vfio-pci ids=10de:13c2,10de:0fbb | |
| options kvm ignore_msrs=1 | |
| ''; |