From 04d1a5536fa58515a52b953ae65e3fbe32b22ac7 Mon Sep 17 00:00:00 2001 From: "Wei,Shuai" Date: Fri, 8 Aug 2014 15:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=09=E5=9C=A8=E5=AE=89=E8=A3=85=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=BB=93=E6=9D=9F=E5=90=8E=EF=BC=8C=E5=AF=B9/etc/?= =?UTF-8?q?=E5=92=8C/usr/share/config/=E4=B8=A4=E4=B8=AA=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=88=86=E5=88=AB=E5=81=9Agit=E5=BA=93=20=09=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E7=AE=A1=E7=90=86(bug1941)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit new file: operation/finish_install/99create_git_manage.sh new file: operation/finish_install/cfg_create_git.sh Signed-off-by: Wei,Shuai --- .../finish_install/99create_git_manage.sh | 25 ++++++++++++++ operation/finish_install/cfg_create_git.sh | 33 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 operation/finish_install/99create_git_manage.sh create mode 100644 operation/finish_install/cfg_create_git.sh diff --git a/operation/finish_install/99create_git_manage.sh b/operation/finish_install/99create_git_manage.sh new file mode 100755 index 0000000..45f33f9 --- /dev/null +++ b/operation/finish_install/99create_git_manage.sh @@ -0,0 +1,25 @@ +#!/bin/bash +#=============================================================================== +# +# FILE: create_git_manage.sh +# +# USAGE: ./create_git_manage.sh +# +# DESCRIPTION: create git of /etc and /usr/share/config +# +# OPTIONS: --- +# REQUIREMENTS: --- +# BUGS: --- +# NOTES: --- +# AUTHOR: Wei Shuai , swei@linx-info.com +# COMPANY: linx-info +# COPYRIGHT: Copyright 2001-2014 Linx Technology Co.,Ltd. +# CREATED: 2014年08月08日 13时50分49秒 CST +# REVISION: --- +#=============================================================================== + +source ./functions +cp /usr/lib/new_install/operation/finish_install/cfg_create_git.sh $TARGET/ +chmod +x $TARGET/cfg_create_git.sh +chroot $TARGET /cfg_create_git.sh +rm $TARGET/cfg_create_git.sh diff --git a/operation/finish_install/cfg_create_git.sh b/operation/finish_install/cfg_create_git.sh new file mode 100644 index 0000000..630fa9c --- /dev/null +++ b/operation/finish_install/cfg_create_git.sh @@ -0,0 +1,33 @@ +#!/bin/bash +#=============================================================================== +# +# FILE: cfg_create_git.sh +# +# USAGE: ./cfg_create_git.sh +# +# DESCRIPTION: create git of /etc and /usr/share/config +# +# OPTIONS: --- +# REQUIREMENTS: --- +# BUGS: --- +# NOTES: --- +# AUTHOR: Wei Shuai , swei@linx-info.com +# COMPANY: linx-info +# COPYRIGHT: Copyright 2001-2014 Linx Technology Co.,Ltd. +# CREATED: 2014年08月08日 13时50分49秒 CST +# REVISION: --- +#=============================================================================== + +#create git of /etc +cd /etc +git init-db +git config --global "user.name" "sysadmin" +git add . +git commit -m "git manage of /etc/ init..." 1>/dev/null + +#create git of /usr/share/config +cd /usr/share/config/ +git init-db +git config --global "user.name" "sysadmin" +git add . +git commit -m "git manage of /usr/share/config/ init..." 1>/dev/null