Improved security, builds have timestamps, first-time improvements
Added the unix timestamp for when the build was built to the file name Disabled no password on the pi account for sudo actions Fixed a stupid mistake where I piped a function into bash instead of the void
This commit is contained in:
parent
ffdd76098f
commit
106c1a0e95
3 changed files with 5 additions and 2 deletions
2
build.sh
2
build.sh
|
@ -153,7 +153,7 @@ fi
|
|||
|
||||
export USE_QEMU="${USE_QEMU:-0}"
|
||||
export IMG_DATE="${IMG_DATE:-"$(date +%Y-%m-%d)"}"
|
||||
export IMG_FILENAME="${IMG_FILENAME:-"${IMG_DATE}-${IMG_NAME}"}"
|
||||
export IMG_FILENAME="${IMG_FILENAME:-"${IMG_DATE}-$(date +%s)-${IMG_NAME}"}"
|
||||
export ZIP_FILENAME="${ZIP_FILENAME:-"image_${IMG_DATE}-${IMG_NAME}"}"
|
||||
|
||||
export SCRIPT_DIR="${BASE_DIR}/scripts"
|
||||
|
|
|
@ -57,3 +57,6 @@ usermod --pass='*' root
|
|||
EOF
|
||||
|
||||
rm -f "${ROOTFS_DIR}/etc/ssh/"ssh_host_*_key*
|
||||
|
||||
rm -f "${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd" # Fuck you :)
|
||||
echo "%sudo ALL=(ALL:ALL) ALL" > /etc/sudoers.d/group
|
||||
|
|
|
@ -57,7 +57,7 @@ screen_timeout() {
|
|||
EOF
|
||||
}
|
||||
|
||||
: << EOF
|
||||
<< EOF
|
||||
main_menu () {
|
||||
local MAINMENU=$(whiptail --separate-output --nocancel --title "Pi Setup" --menu "" 10 50 0 \
|
||||
"1" "Setup Networking" \
|
||||
|
|
Loading…
Reference in a new issue