Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
75f5f185
Commit
75f5f185
authored
Nov 18, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit small fixes
parent
20d71939
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
4 deletions
+38
-4
update_pem.sh
certs/update_pem.sh
+14
-0
cyrus-imapd-restart
cyrus/cyrus-imapd-restart
+17
-0
glusterupdate.sh
gluster/update/glusterupdate.sh
+2
-1
add_eterkey.sh
rooter/add_eterkey.sh
+2
-1
doeverywhere.sh
vz/doeverywhere.sh
+3
-2
No files found.
certs/update_pem.sh
0 → 100755
View file @
75f5f185
#!/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
cyrus/cyrus-imapd-restart
0 → 100755
View file @
75f5f185
#!/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
gluster/update/glusterupdate.sh
View file @
75f5f185
...
...
@@ -68,7 +68,8 @@ gfs_mount_plus(){
mount /var/ftp/incoming
mount /net/exports/var/ftp/pub
sleep
1
service nfs restart
#service nfs restart
exportfs
-r
}
case
$1
in
...
...
rooter/add_eterkey.sh
View file @
75f5f185
...
...
@@ -55,7 +55,8 @@ add_key_cmd()
# copy key in host system
if
[
-z
"
$VEID
"
]
||
[
"
$VEID
"
=
0
]
;
then
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 -i $USERKEY $USERNAME@$HOST ls ~/.ssh -l
# TODO (.gitconfig)
...
...
vz/doeverywhere.sh
View file @
75f5f185
...
...
@@ -2,7 +2,8 @@
#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
do
...
...
@@ -15,7 +16,7 @@ do
echo
###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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment