Create swapfile on initial install
This commit is contained in:
parent
5e297371b5
commit
a80be2b299
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
|||
fi
|
||||
|
||||
if [ "$SETUP" = true ] ; then
|
||||
# SWAPFILE
|
||||
dd if=/dev/zero of=/swapfile bs=1024 count=512k
|
||||
mkswap /swapfile
|
||||
swapon /swapfile
|
||||
|
||||
# SET TIMESTAMP
|
||||
echo "America/New_York" | tee /etc/timezone
|
||||
dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
|
Loading…
Reference in a new issue