github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/images/scripts/freebsd/postinstall.sh (about)

     1  #!/bin/sh -eux
     2  
     3  # Set the time correctly
     4  ntpdate -v -b in.pool.ntp.org;
     5  
     6  # Install sudo, curl and ca_root_nss
     7  pkg install -y curl;
     8  pkg install -y ca_root_nss;
     9  
    10  # Emulate the ETCSYMLINK behavior of ca_root_nss; this is for FreeBSD 10,
    11  # where fetch(1) was massively refactored and doesn't come with
    12  # SSL CAcerts anymore
    13  ln -sf /usr/local/share/certs/ca-root-nss.crt /etc/ssl/cert.pem;
    14  
    15  # As sharedfolders are not in defaults ports tree, we will use NFS sharing
    16  cat >>/etc/rc.conf << RC_CONF
    17  rpcbind_enable="YES"
    18  nfs_server_enable="YES"
    19  mountd_flags="-r"
    20  RC_CONF
    21  
    22  # Disable X11 because Vagrants VMs are (usually) headless
    23  cat >>/etc/make.conf << MAKE_CONF
    24  WITHOUT_X11="YES"
    25  MAKE_CONF