Sha256: 18ee76189ec7415836f0867886d5b05aaaf7209ad5da50bf6d271fbb7ee8a151

Contents?: true

Size: 332 Bytes

Versions: 812

Compression:

Stored size: 332 Bytes

Contents

#!/bin/bash --login
# nohup prevents freezes in Packer due to execution moving to the next
# script while a reboot is in progress. This should be coupled with a
# "pause_before" stanza for the next provisioner in the Packer
# to guarantee the required behaviour.
nohup sudo shutdown --reboot now </dev/null >/dev/null 2>&1 &
exit 0

Version data entries

812 entries across 812 versions & 1 rubygems

Version Path
pwn-0.4.348 packer/provisioners/reboot_os.sh
pwn-0.4.347 packer/provisioners/reboot_os.sh
pwn-0.4.346 packer/provisioners/reboot_os.sh
pwn-0.4.344 packer/provisioners/reboot_os.sh
pwn-0.4.343 packer/provisioners/reboot_os.sh
pwn-0.4.342 packer/provisioners/reboot_os.sh
pwn-0.4.341 packer/provisioners/reboot_os.sh
pwn-0.4.340 packer/provisioners/reboot_os.sh
pwn-0.4.339 packer/provisioners/reboot_os.sh
pwn-0.4.338 packer/provisioners/reboot_os.sh
pwn-0.4.336 packer/provisioners/reboot_os.sh
pwn-0.4.333 packer/provisioners/reboot_os.sh