diff options
author | B Stack <bgstack15@gmail.com> | 2016-10-20 16:15:23 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2016-10-20 16:15:23 -0400 |
commit | d60ed67fa4eeeba312646358316e49c0a6cbc6f6 (patch) | |
tree | 7cec285c82c1e15cc021086899165afb7bed2385 /s6_bgstack15.sh | |
download | deployscripts-d60ed67fa4eeeba312646358316e49c0a6cbc6f6.tar.gz deployscripts-d60ed67fa4eeeba312646358316e49c0a6cbc6f6.tar.bz2 deployscripts-d60ed67fa4eeeba312646358316e49c0a6cbc6f6.zip |
initial commit
Diffstat (limited to 's6_bgstack15.sh')
-rwxr-xr-x | s6_bgstack15.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/s6_bgstack15.sh b/s6_bgstack15.sh new file mode 100755 index 0000000..49ff7bf --- /dev/null +++ b/s6_bgstack15.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# File: /root/s6_bgstack15.sh +# Package: deployscripts +# Author: bgstack15 +# Startdate: 2016-05-20 +# Title: Template Script 6: bgstackness +# Purpose: Set up my personal configs +# History: +# Usage: ./s6[tab][enter] +# Reference: +# "\\example.com\staff\IT\PlatformServices\Linux\Templates\Building the Centos 7 Template.docx" +# Improve: + +eval flavor=$( grep -iE "^\s*ID=" /etc/os-release | sed 's/^.*=//;' ) +thisuser="Bgstack15" + +case "${flavor}" in + centos) + wget http://mirror.example.com/bgscripts/bgscripts.repo -O /etc/yum.repos.d/bgscripts.repo + yum -y install keepalive + #cat <<EOFBGSTACK15 >/etc/sudoers.d/10_bgstack15 + #User_Alias BGSTACK15 = Bgstack15, bgstack15, bgstack15-local + #BGSTACK15 ALL=(ALL) NOPASSWD: ALL + #EOFBGSTACK15 + ;; + ubuntu) + wget --quiet http://mirror.example.com/ubuntu/example-debian/example-debian.gpg -O /root/example-debian.gpg + apt-key add /root/example-debian.gpg + wget --quiet http://mirror.example.com/ubuntu/example-debian/example-debian.list -O /etc/apt/sources.list.d/example-debian.list + http_proxy= apt-get update >/dev/null 2>&1 + http_proxy= apt-get -y install bgscripts keepalive + ;; +esac |