initial commit
This commit is contained in:
commit
7bb22bb4d4
6 changed files with 67 additions and 0 deletions
15
data/setup.sh
Executable file
15
data/setup.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/bash
|
||||
set -euo pipefail
|
||||
cd /etc/ssh
|
||||
FILENAME="$(mktemp)"
|
||||
(echo PasswordAuthentication no; cat sshd_config) > "$FILENAME"
|
||||
mv "$FILENAME" sshd_config
|
||||
fallocate -l 1GiB /var/swapfile
|
||||
chmod 600 /var/swapfile
|
||||
mkswap /var/swapfile
|
||||
echo "/var/swapfile none swap defaults 0 0" >> /etc/fstab
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold"
|
||||
reboot
|
||||
exit
|
||||
Loading…
Add table
Add a link
Reference in a new issue