#!/bin/bash

#
# Provisioning script for the *privileged* user (root).
#
# Tested on Ubuntu (64 bit)
#


# Exit on error
set -e
set -u
set -o errexit

export DEBIAN_FRONTEND=noninteractive

if [ -b /dev/sda ]; then
    echo "Installing GRUB so that APT doesn't complain..."
    grub-install /dev/sda
    update-grub
fi

echo "Installing swapspace to accommodate MeCab's memory requirements..."
apt-get -y install swapspace
service swapspace start

#!/bin/bash

#
# Provisioning script for the *privileged* user (root).
#
# Tested on Ubuntu (64 bit)
#


# Exit on error
set -e
set -u
set -o errexit

export DEBIAN_FRONTEND=noninteractive

if [ -b /dev/sda ]; then
    echo "Installing GRUB so that APT doesn't complain..."
    grub-install /dev/sda
    update-grub
fi

echo "Installing swapspace to accommodate MeCab's memory requirements..."
apt-get -y update
apt-get -y install swapspace
service swapspace start

Update APT package listing before installing swapspace
Update APT package listing before installing swapspace
