Created
October 28, 2016 13:37
-
-
Save ddepaoli3/029c97b8a71f71108067066fdc8bce5f to your computer and use it in GitHub Desktop.
default creation for sas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum update -y | |
curl -o /tmp/epel-release-latest-7.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
rpm -i /tmp/epel-release-latest-7.noarch.rpm | |
yum install -y etckeeper | |
etckeeper init | |
etckeeper commit -m "Initial commit" | |
useradd -m -U sas | |
useradd -m -U sasdemo | |
mkdir /acr | |
mkdir /sas | |
chown -R sasdemo:sas /acr | |
chown -R sas:sas /sas | |
fdisk /dev/xvdf | |
n #create partition | |
p #primary | |
1 #number | |
\n | |
\n | |
\n | |
w | |
mkfs.ext4 /dev/xvdf1 | |
echo /dev/xvdf1 /acr ext4 >> /etc/fstab | |
fdisk /dev/xvdg | |
n #create partition | |
p #primary | |
1 #number | |
\n | |
\n | |
\n | |
w | |
mkfs.ext4 /dev/xvdg | |
echo /dev/xvdg1 /sas ext4 >> /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment