4623 shaares
397 liens privés
397 liens privés
#!/bin/bash
set -e
echo "Installing dependencies..."
sudo apt-get -qq update
sudo apt-get -qqy install parted
echo "Grow partition"
sudo /sbin/parted ---pretend-input-tty /dev/xvda resizepart 1 yes 100%
echo "Resize filesystem"
sudo resize2fs /dev/xvda1