FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:pkg:scripts:rpm.sh.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 ↷ Links adapted because of a move operation
Line 1: Line 1:
-[[os:package:index.html|]]+[[os:linux:pkg:index.html]]
 ====== rpm.sh ====== ====== rpm.sh ======
  
 +$FHHOME/scripts/rpm.sh
  
-<sxh python toolbar:false gutter:false> 
-import sys 
-from fabric.api import * 
-from fabric.contrib import files 
  
-FHHOME=os.environ["FHHOME"+===== rpm.sh =====
- +
-#---------------------------------------------------------------------- +
-# CentOS7 Common +
-#---------------------------------------------------------------------- +
-@task +
-@task +
-def common(): +
-    put("%s/scripts/rpm_centos.sh", "scripts/rpm_centos.sh, mode=0755 % FHHOME) +
-    sudo("scripts/rpm_centos.sh centos7", pty=False) +
- +
-#---------------------------------------------------------------------- +
-#CentOS6 Common +
-#---------------------------------------------------------------------- +
- +
- +
- +
-</sxh> +
- +
-\\ +
-===== rpm-centos7.sh =====+
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 35: Line 12:
 # #
 # How to use # How to use
-#     rpm-centos.sh centos7 +#     rpm.sh centos7 
-#     rpm-centos.sh centos6 +#     rpm.sh centos6
-#     rpm-centos.sh nginx+
  
 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:index.html]]+[[os:linux:pkg:index.html]]
 <catlist ..:..: -noAddPageButton -noHead> <catlist ..:..: -noAddPageButton -noHead>
 </WRAP> </WRAP>


os/linux/pkg/scripts/rpm.sh.html.txt · Last modified: 2018/05/08 02:01 by kurihara