From 71d2aefe3e8f77668051d3dbc658a695ec06363a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 10 Sep 2016 21:59:56 -0400 Subject: erp1: Spew text --- (limited to 'hosts/erp1') diff --git a/hosts/erp1 b/hosts/erp1 index 94a4519..aedb682 100644 --- a/hosts/erp1 +++ b/hosts/erp1 @@ -62,6 +62,7 @@ postinst_pkgs=' do_postinst() { # Add "deb-src" line and backports. + info 'Configuring APT' cat >"${target}/etc/apt/sources.list" <<-EOF deb http://httpredir.debian.org/debian jessie main deb-src http://httpredir.debian.org/debian jessie main @@ -73,6 +74,7 @@ do_postinst() in_target apt-get update || return 1 # Purge systemd. + info 'Purging systemd' in_target apt-get -q -y purge libpam-systemd systemd || return 1 in_target apt-get -q -y --purge autoremove || return 1 @@ -81,6 +83,7 @@ do_postinst() chmod a+x "${target}/usr/sbin/policy-rc.d" # Install LedgerSMB. + info 'Installing LedgerSMB' cat >"${target}/etc/apt/sources.list.d/ledgersmb.list" <<-EOF deb https://apt.ledgersmb.org/ jessie main deb-src https://apt.ledgersmb.org/ jessie main @@ -91,6 +94,7 @@ do_postinst() in_target apt-get -q -y install ledgersmb || return 1 # Install Odoo. + info 'Installing Odoo' cat >"${target}/etc/apt/sources.list.d/odoo.list" <<-EOF deb http://nightly.odoo.com/9.0/nightly/deb/ ./ deb-src http://nightly.odoo.com/9.0/nightly/deb/ ./ @@ -107,6 +111,7 @@ do_postinst() in_target apt-get clean || return 1 # Update initramfs. + info 'Updating initramfs' in_target update-initramfs -u # Configure network interfaces. @@ -155,6 +160,7 @@ do_postinst() in_target chmod 0600 '/home/user/.ssh/known_hosts' # Bootstrap vcsh and mr. + info 'Bootstrapping dotfiles' rm -f "${target}/home/user/.profile" "${target}/home/user/.bashrc" \ "${target}/home/user/.bash_logout" in_target sudo -u user vcsh clone \ -- cgit v0.9.1