Compare commits

...

4 Commits

Author SHA1 Message Date
oleg b1fe4f38f0 progress 2024-07-31 12:44:24 -04:00
oleg c7e717a64f fix 2024-07-31 12:37:32 -04:00
oleg c6b99f6678 progress 2024-07-31 12:24:00 -04:00
oleg 6c771ad1a1 progress 2024-07-31 11:34:58 -04:00
2 changed files with 15 additions and 5 deletions
+14 -4
View File
@@ -5,7 +5,7 @@ usage() {
exit 1 exit 1
} }
echo "Started ${*} ..." echo "Started ${0} ${*} ..."
Domain=cvtt.vpn Domain=cvtt.vpn
RootDir=${1} RootDir=${1}
@@ -13,7 +13,10 @@ RootDir=${1}
if [ ! -d "${RootDir}" ]; then if [ ! -d "${RootDir}" ]; then
usage usage
fi fi
cd ${RootDir} cd ${RootDir}
Cmd="git pull"
echo ${Cmd} && eval ${Cmd}
for User in cvtt oleg for User in cvtt oleg
do do
@@ -29,13 +32,20 @@ do
for host in ${hosts} for host in ${hosts}
do do
echo "====================" echo "===================="
echo "${host}" echo "${host}:${User}"
ssh ${User}@${host}.${Domain} 'crontab -l' | tee ${RootDir}/${User}/${host}.cron Cmd="ssh ${User}@${host}.${Domain} 'crontab -l' | tee ${RootDir}/${User}/${host}.cron"
echo ${Cmd} && eval ${Cmd}
done done
done done
cd ${RootDir} cd ${RootDir}
Cmd="find -type f -empty -delete -print"
echo ${Cmd} && eval ${Cmd}
Cmd="find -type d -empty -delete -print"
echo ${Cmd} && eval ${Cmd}
Cmd="git add ." Cmd="git add ."
echo ${Cmd} && eval ${Cmd} echo ${Cmd} && eval ${Cmd}
@@ -45,4 +55,4 @@ echo ${Cmd} && eval ${Cmd}
Cmd="git pushall" Cmd="git pushall"
echo ${Cmd} && eval ${Cmd} echo ${Cmd} && eval ${Cmd}
echo "${0} Done." echo "Done ${0} ${*}"
+1 -1
View File
@@ -1 +1 @@
1.2.6 1.3.1