update
This commit is contained in:
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
#yum makecache
|
||||
|
||||
yum --disablerepo="*" --enablerepo="atclab" clean all && yum --disablerepo="*" --enablerepo="atclab" -y update
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
desc="$@"
|
||||
|
||||
git commit -m "$desc"
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
DIR=$(git rev-parse --show-toplevel) || exit 10
|
||||
NAME=$(rpm -q --qf '%{name}\n' --specfile ${DIR}/*.spec)
|
||||
VERSION=$(rpm -q --qf '%{version}\n' --specfile ${DIR}/*.spec)
|
||||
|
||||
|
||||
while getopts ":h:" OPT; do
|
||||
case "$OPT" in
|
||||
\?|h) usage ; exit 0 ;;
|
||||
esac
|
||||
done
|
||||
shift $((OPTIND-1))
|
||||
|
||||
case $1 in
|
||||
apply) git tag -a -mversion v${VERSION} ;;
|
||||
*) echo git tag -a -mversion v${VERSION} ;;
|
||||
esac
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
DEL=""
|
||||
|
||||
deletehost() {
|
||||
local host ip
|
||||
host=$(echo $1 | awk -F@ '{print $NF}')
|
||||
ip=$(host $host | awk '/has address/ {print $NF}' | head -1)
|
||||
ssh-keygen -R $host
|
||||
test -n "$ip" && ssh-keygen -R $ip
|
||||
}
|
||||
|
||||
while getopts ":dh" OPT; do
|
||||
case "$OPT" in
|
||||
d) DEL=Y ;;
|
||||
\?|h) usage >&2 ; exit 0 ;;
|
||||
esac
|
||||
done
|
||||
shift $(expr $OPTIND - 1)
|
||||
|
||||
test -n "$DEL" && deletehost $@
|
||||
|
||||
ssh root@${1:-none}
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
test -f /var/log/messages && tail -n100 /var/log/messages
|
||||
test -f /var/log/syslog && tail -n100 /var/log/syslog
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
test -f /var/log/messages && tail -n100 -f /var/log/messages
|
||||
test -f /var/log/syslog && tail -n100 -f /var/log/syslog
|
||||
Reference in New Issue
Block a user