Skip to content

Commit

Permalink
adds apt-get update to fix init process
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmanhalftaco committed Jun 6, 2017
1 parent d5e1019 commit 3724952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ invoke-rc.d rsyslog restart
cp /etc/hosts /etc/hosts.irixboot

echo "Installing packages..."
apt-get -qq -y install tftpd-hpa isc-dhcp-server rsh-server dnsmasq mksh parted xfsprogs rsync tcpdump
apt-get update && apt-get -qq -y install tftpd-hpa isc-dhcp-server rsh-server dnsmasq mksh parted xfsprogs rsync tcpdump

### disable upstream nameserver (now that we don't need it anymore)
sed -i 's/^nameserver/#nameserver/' /etc/resolv.conf
Expand Down Expand Up @@ -53,4 +53,4 @@ sed -i 's/^TFTP_DIRECTORY.*$/TFTP_DIRECTORY="\/irix"/' /etc/default/tftpd-hpa
sed -i 's/^TFTP_OPTIONS.*$/TFTP_OPTIONS=\"--secure -vvvv\"/' /etc/default/tftpd-hpa

echo "Creating 'guest' user..."
if ! id -u guest >/dev/null 2>&1; then useradd -s /bin/ksh -d /irix guest; fi
if ! id -u guest >/dev/null 2>&1; then useradd -s /bin/ksh -d /irix guest; fi

0 comments on commit 3724952

Please sign in to comment.