Commit 75f5f185 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit small fixes

parent 20d71939
#!/bin/sh
#letsencrypt certonly --standalone-supported-challenges tls-sni-01 --standalone -d mail.etersoft.ru -d mail.etersoft.com -d mail.etersoft.org -d mail.etersoft.net
letsencrypt renew || exit
cat /etc/letsencrypt/live/mail.etersoft.ru/fullchain.pem \
/etc/letsencrypt/live/mail.etersoft.ru/privkey.pem > /etc/postfix/tls/mail.etersoft.ru_full.pem
service postfix restart
cp /etc/letsencrypt/live/mail.etersoft.ru/privkey.pem /var/lib/imap/ssl/etersoft.pem
cp /etc/letsencrypt/live/mail.etersoft.ru/fullchain.pem /var/lib/imap/ssl/mail.etersoft.ru.crt
service cyrus-imapd restart
#!/bin/sh
service cyrus-imapd stop
killall imapd
sleep 1
killall -9 imapd
killall pop3d
sleep 1
killall -9 pop3d
sleep 1
killall -9 /usr/lib/cyrus/cyrus-master
service cyrus-imapd start
...@@ -68,7 +68,8 @@ gfs_mount_plus(){ ...@@ -68,7 +68,8 @@ gfs_mount_plus(){
mount /var/ftp/incoming mount /var/ftp/incoming
mount /net/exports/var/ftp/pub mount /net/exports/var/ftp/pub
sleep 1 sleep 1
service nfs restart #service nfs restart
exportfs -r
} }
case $1 in case $1 in
......
...@@ -55,7 +55,8 @@ add_key_cmd() ...@@ -55,7 +55,8 @@ add_key_cmd()
# copy key in host system # copy key in host system
if [ -z "$VEID" ] || [ "$VEID" = 0 ] ; then if [ -z "$VEID" ] || [ "$VEID" = 0 ] ; then
echo "Copy key for $USERNAME to host $HOST" echo "Copy key for $USERNAME to host $HOST"
echo "$USERKEY" | docmd ssh $HOST "$(add_key_cmd)" # FIXME: не работает на CentOS
echo "$USERKEY" | docmd ssh $SSHOPT $HOST "$(add_key_cmd)"
ssh $SSHOPT $HOST $HOSTSUDO ls /home/$USERNAME/.ssh -l ssh $SSHOPT $HOST $HOSTSUDO ls /home/$USERNAME/.ssh -l
#ssh -i $USERKEY $USERNAME@$HOST ls ~/.ssh -l #ssh -i $USERKEY $USERNAME@$HOST ls ~/.ssh -l
# TODO (.gitconfig) # TODO (.gitconfig)
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
#exec &>./doeverywhere.log #exec &>./doeverywhere.log
HOSTS="devel windsor cellar priv host03 fund clients de01 azbyka azbykar telros" HOSTS="devel windsor cellar priv host03 fund clients de01 azbyka azbykar telros a01 a02"
for i in $HOSTS for i in $HOSTS
do do
...@@ -15,7 +16,7 @@ do ...@@ -15,7 +16,7 @@ do
echo echo
###ssh $i vzctl exec $j <<<place the command here (with spaces without quotes)>>> ###ssh $i vzctl exec $j <<<place the command here (with spaces without quotes)>>>
ssh $i vzctl exec $j apt-cache policy glusterfs3-client ssh $i vzctl exec $j epmI -y openssh-server
done done
done done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment