cleanup provision
This commit is contained in:
parent
406607ee98
commit
c3b6ee78ef
@ -1,10 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
|
|
||||||
(
|
(
|
||||||
echo MAGMA : Starting packer provisioning.
|
echo Starting packer provisioning.
|
||||||
sysctl -n kern.version
|
sysctl -n kern.version
|
||||||
printf 'permit nopass :wheel\n' > /etc/doas.conf
|
printf 'permit nopass :wheel\n' > /etc/doas.conf
|
||||||
printf 'PasswordAuthentication yes\nPermitRootLogin yes\n' >> /etc/ssh/sshd_config
|
printf 'PasswordAuthentication yes\nPermitRootLogin yes\n' >> /etc/ssh/sshd_config
|
||||||
@ -13,8 +11,6 @@ set +x
|
|||||||
echo Cleaning caches
|
echo Cleaning caches
|
||||||
find /var/log -type f | while read f; do echo -ne '' > $f; done
|
find /var/log -type f | while read f; do echo -ne '' > $f; done
|
||||||
find /tmp -type f | while read f; do echo -ne '' > $f; done
|
find /tmp -type f | while read f; do echo -ne '' > $f; done
|
||||||
#echo Filling /EMPTY with zeroes...
|
|
||||||
#dd if="/dev/zero" of="/EMPTY" bs=4096 > /dev/null 2>&1 || rm -f "/EMPTY"
|
|
||||||
sync
|
sync
|
||||||
sync
|
sync
|
||||||
echo Packer provisionning done.
|
echo Packer provisionning done.
|
||||||
|
Loading…
Reference in New Issue
Block a user