FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
os:linux:pkg:scripts:rpm.sh.html [2017/12/17 23:27] kurihara created |
os:linux:pkg:scripts:rpm.sh.html [2018/02/04 23:23] kurihara ↷ Page moved from os:pkg:scripts:rpm.sh.html to os:linux:pkg:scripts:rpm.sh.html |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[os:package:index.html|]] | + | [[os:pkg: |
====== rpm.sh ====== | ====== rpm.sh ====== | ||
+ | $FHHOME/ | ||
- | <sxh python toolbar: | ||
- | import sys | ||
- | from fabric.api import * | ||
- | from fabric.contrib import files | ||
- | FHHOME=os.environ[" | + | ===== rpm.sh ===== |
- | + | ||
- | # | + | |
- | # CentOS7 Common | + | |
- | # | + | |
- | @task | + | |
- | @task | + | |
- | def common(): | + | |
- | put(" | + | |
- | sudo(" | + | |
- | + | ||
- | # | + | |
- | #CentOS6 Common | + | |
- | # | + | |
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
- | + | ||
- | \\ | + | |
- | ===== rpm-centos7.sh ===== | + | |
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 35: | Line 12: | ||
# | # | ||
# How to use | # How to use | ||
- | # rpm-centos.sh centos7 | + | # |
- | # rpm-centos.sh centos6 | + | # |
- | # | + | |
if [ -z $1 ]; then | if [ -z $1 ]; then | ||
Line 71: | Line 47: | ||
;; | ;; | ||
centos6) centos6 | centos6) centos6 | ||
- | ;; | ||
- | nginx) nginx | ||
;; | ;; | ||
*) echo "$1 option is valid" | *) echo "$1 option is valid" | ||
Line 81: | Line 55: | ||
\\ | \\ | ||
<WRAP box 90%> | <WRAP box 90%> | ||
- | [[os:package: | + | [[os:pkg: |
<catlist ..:..: -noAddPageButton -noHead> | <catlist ..:..: -noAddPageButton -noHead> | ||
</ | </ |
My Sites
SNS
Copyright (c) 2023 FastHandle - IT Operations Examples All Rights Reserved.