Skip to content

Commit

Permalink
merged to single script
Browse files Browse the repository at this point in the history
  • Loading branch information
woodp committed Feb 1, 2018
1 parent 66054e3 commit a57b741
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions virtual-machines/single-vm/extensions/linux/single-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,27 @@
#
#!/bin/bash
sh install-apache.sh
sh format-disk.sh
sh format-disk.1.sh

# Format and mount drive 1
partprobe
echo ';' | sfdisk /dev/sdd
partprobe
mkfs -t ext3 /dev/sdd1
mkdir -p /data2
if grep -qs '/data2' /proc/mounts; then
echo "already mounted."
else
mount /dev/sdc1 /data1
fi

# Format and mount drive 2
partprobe
echo ';' | sfdisk /dev/sdc
partprobe
mkfs -t ext3 /dev/sdc1
mkdir -p /data1
if grep -qs '/data1' /proc/mounts; then
echo "already mounted."
else
mount /dev/sdc1 /data1
fi

0 comments on commit a57b741

Please sign in to comment.