2
# hp-proliant-maas-install - runs apt-get update, upgrade, and deploys the
5
# Authors: Kent Baxley <kent.baxley@canonical.com>
7
# This program is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation, version 3 of the License.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
# Only run this as root
22
echo Execute as root or with \"sudo $0\"
26
export DEBIAN_FRONTEND=noninteractive
29
apt-get upgrade --yes --force-yes
30
apt-get install hp-proliant --yes --force-yes
33
#Try to bootstrap once we are done installing the hp-proliant package.
35
chown -R ubuntu:ubuntu /home/ubuntu/.juju
36
bootstrap="/usr/bin/hp-proliant-bootstrap-juju"
37
su - ubuntu -c "$bootstrap"