summaryrefslogtreecommitdiff
path: root/packaging.txt
blob: e7ba0d476f7bfbe30da54939c3d81e1148c68256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
File: /root/packaging.txt
Package: deployscripts.tgz
Author: bgstack15
Startdate: 2016-10-20
Title: Packaging information for deployscripts.tgz
Purpose: To describe how these scripts are stored, packaged, and deployed
History: 2014 I wrote shell scripts (adapting from a previous person's source scripts) that automate hard-coded information for a server
Usage:
Reference: bgscripts README.txt
   "Building the Centos 7 Template.docx"
Improve:
Document: Below this line

### PACKAGING the deployscripts in a tgz
( cd /mnt/scripts/template && rm -rf deployscripts.tgz && tar -zcf deployscripts.tgz .makecert.exp updateval.sh s*sh; )

### DEPLOYING from nfs hosted tgz
tar -zxC /root -f /mnt/scripts/template/deployscripts.tgz

### DEPLOYING from scp tgz
scp -pr norite:/mnt/scripts/template/deployscripts.tgz /root

tar -zxC /root -f /root/deployscripts.tgz

### PACKAGING in a MASTER tgz
# This includes the git information and auxiliary info
mtgz=/mnt/scripts/template/deployscripts.master.tgz
rm "${mtgz}"
( cd $( dirname ${mtgz} ); 
tar -X /mnt/scripts/template/.gitignore --no-recursion -zc -f "${mtgz}" * .makecert.exp )
bgstack15