Update for bookworm release

This commit is contained in:
Jeroen Oudshoorn
2023-12-16 22:52:30 +01:00
parent bea5575668
commit e9a4e69514

View File

@ -150,53 +150,53 @@ build {
} }
} }
build { #build {
name = "Raspberry Pi 32 Pwnagotchi" # name = "Raspberry Pi 32 Pwnagotchi"
sources = ["source.arm.rpi32-pwnagotchi"] # sources = ["source.arm.rpi32-pwnagotchi"]
provisioner "file" { # provisioner "file" {
destination = "/usr/bin/" # destination = "/usr/bin/"
sources = [ # sources = [
"data/usr/bin/bettercap-launcher", # "data/usr/bin/bettercap-launcher",
"data/usr/bin/hdmioff", # "data/usr/bin/hdmioff",
"data/usr/bin/hdmion", # "data/usr/bin/hdmion",
"data/usr/bin/monstart", # "data/usr/bin/monstart",
"data/usr/bin/monstop", # "data/usr/bin/monstop",
"data/usr/bin/pwnagotchi-launcher", # "data/usr/bin/pwnagotchi-launcher",
"data/usr/bin/pwnlib", # "data/usr/bin/pwnlib",
] # ]
} # }
provisioner "shell" { # provisioner "shell" {
inline = ["chmod +x /usr/bin/*"] # inline = ["chmod +x /usr/bin/*"]
} # }
provisioner "file" { # provisioner "file" {
destination = "/etc/systemd/system/" # destination = "/etc/systemd/system/"
sources = [ # sources = [
"data/etc/systemd/system/bettercap.service", # "data/etc/systemd/system/bettercap.service",
"data/etc/systemd/system/pwnagotchi.service", # "data/etc/systemd/system/pwnagotchi.service",
"data/etc/systemd/system/pwngrid-peer.service", # "data/etc/systemd/system/pwngrid-peer.service",
] # ]
} # }
provisioner "file" { # provisioner "file" {
destination = "/etc/update-motd.d/01-motd" # destination = "/etc/update-motd.d/01-motd"
source = "data/etc/update-motd.d/01-motd" # source = "data/etc/update-motd.d/01-motd"
} # }
provisioner "shell" { # provisioner "shell" {
inline = ["chmod +x /etc/update-motd.d/*"] # inline = ["chmod +x /etc/update-motd.d/*"]
} # }
provisioner "shell" { # provisioner "shell" {
inline = [ # inline = [
"apt-get -y --allow-releaseinfo-change update", "export LC_ALL=en_GB.UTF-8", "apt-get -y dist-upgrade", # "apt-get -y --allow-releaseinfo-change update", "export LC_ALL=en_GB.UTF-8", "apt-get -y dist-upgrade",
"apt-get install -y --no-install-recommends ansible" # "apt-get install -y --no-install-recommends ansible"
] # ]
} # }
provisioner "ansible-local" { # provisioner "ansible-local" {
command = "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 PWN_VERSION=${var.pwn_version} PWN_HOSTNAME=${var.pwn_hostname} ansible-playbook" # command = "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 PWN_VERSION=${var.pwn_version} PWN_HOSTNAME=${var.pwn_hostname} ansible-playbook"
extra_arguments = ["--extra-vars \"ansible_python_interpreter=/usr/bin/python3\""] # extra_arguments = ["--extra-vars \"ansible_python_interpreter=/usr/bin/python3\""]
playbook_dir = "extras/" # playbook_dir = "extras/"
playbook_file = "raspberrypi32.yml" # playbook_file = "raspberrypi32.yml"
} # }
} #}
#build { #build {
# name = "Orange Pi Pwnagotchi" # name = "Orange Pi Pwnagotchi"
# sources = ["source.arm.opi-pwnagotchi"] # sources = ["source.arm.opi-pwnagotchi"]