Commit Graph

1103 Commits

Author SHA1 Message Date
Serghey Rodin
c1b775443d added scripts to copy web domain ssl to vesta and exim 2019-03-03 23:25:16 +02:00
Serghey Rodin
c5cff5bcd6 Merge branch 'master' of github.com:serghey-rodin/vesta 2019-02-28 23:47:18 +02:00
Serghey Rodin
a7b54d6000 Function to search avaiable SSL certificates that could be used as main cert 2019-02-28 23:47:07 +02:00
Anton Reutov
66473a41d9 Merge pull request #1819 from pablobae/pablobae-patch1
Update v-add-firewall-chain getting ssh port from ssh config file (not hardcoded)
2019-02-28 23:02:59 +03:00
Anton Reutov
ba6491b23f Merge pull request #1815 from mdandidarmawan/master
Fixing Typo error on Lets Encrypt validation
2019-02-25 17:21:15 +03:00
dpeca
d15e103704 Allow admins to run custom script after SSL is put to any domain
Useful if you have separated SSLs for each IP address.

If admin add to vesta.conf this:
UPDATE_SSL_SCRIPT='/usr/local/bin/update_ssl_script.sh'
that script will be called after each domain get new SSL or renew old SSL.

Then admin can write custom script that will, for example, copy new SSL to some file that is needed for dovecot or exim, for example...
Passed parameters are $user and $domain ($1 and $2), so custom script can check what domain got new SSL, and then to run custom task...
2019-02-14 18:29:56 +01:00
pablobae
d334ddc501 Update v-add-firewall-chain
Obtains the SSH port from the service configuration file (originally it was hardcoded). This allow the correct creation of ssh chain when this service has a custom port.
2019-02-07 16:49:43 +01:00
Dandi Darmawan
c1fc0208f7 Fixing Typo
check_result $E_CONNECT "Let's Encrypt vvalidation status $status"  > check_result $E_CONNECT "Let's Encrypt validation status $status"
2019-01-24 18:16:01 +07:00
dpeca
0d85c88d18 Bringing back Better handling of calm-down routine while LE renewing
Accidentally overwritten in f8b4d42b74 commit
Original commit: 3d8b6a87a7

Calming down is because https://github.com/serghey-rodin/vesta/issues/1193 issue
2018-12-27 21:10:17 +01:00
Serghey Rodin
f8b4d42b74 Let's Encrypt v2 with wildcard support 2018-12-26 12:54:33 +02:00
dpeca
4327a3d1bc Syntax error fix in v-add-letsencrypt-user 2018-12-21 17:28:12 +01:00
dpeca
3d8b6a87a7 Better handling of calm-down routine while LE renewing
Sleep is because https://github.com/serghey-rodin/vesta/issues/1193
2018-12-10 14:31:10 +01:00
dpeca
58c6ca95b1 Fix for suspended domain checking while LE renewing
Logic should be inversed...
If you grep for suspended=no, then variable is NOT empty if it's NOT suspended
Which means it's empty only if it's suspended.
So we must grep for suspended=yes if we consider not-empty result as suspended domain.
@skullwritter 

This bug totally brakes LE renewing :)
2018-12-10 14:15:46 +01:00
Serghey Rodin
320455f7c9 ACME v2 support - list user/ typo 2018-12-04 16:30:42 +02:00
Serghey Rodin
d2d399676f ACME v2 support - list user 2018-12-04 16:27:22 +02:00
Serghey Rodin
41bfca0b21 ACME v2 support 2018-12-04 16:21:46 +02:00
Anton Reutov
15a6808733 Merge pull request #1733 from skullwritter/patch-8
supose fix to #1526
2018-11-24 22:44:48 +02:00
Anton Reutov
c5ba8b5b65 Update v-update-user-counters 2018-11-24 22:43:21 +02:00
Dmitry Bannik
eb29a1f374 Merge branch 'master' into fix-tar-exclude-folder 2018-11-21 04:46:41 +03:00
Serghey Rodin
00bc162fe6 removed duplicate loop 2018-11-20 11:20:21 +02:00
Serghey Rodin
0437c4ac3e fix backup exlustions for files 2018-11-14 17:53:48 +02:00
Made I.T
381bc48e96 Fix dubble www 2018-11-08 16:32:31 +01:00
dpeca
2996b8afc8 Merge pull request #1734 from skullwritter/patch-9
Fix for LE renewal if domain is suspended
2018-11-07 20:47:10 +01:00
dpeca
f9a15564e2 Escaping quotas in JSON output of v-list-web-domain-ssl 2018-10-31 17:07:01 +01:00
Skull Writter
fa331e6ef2 removed dns and mail support - checking le 2018-10-30 16:25:24 -01:00
dpeca
76319e5a1b Avoid user backup if user is not created from Vesta 2018-10-28 03:29:50 +01:00
dpeca
5ab9fc5f4a Avoid user stats for the user that is not created from Vesta 2018-10-28 00:31:34 +02:00
dpeca
21dd9fae6d Avoid listing user that is not created from Vesta 2018-10-28 00:23:12 +02:00
Skull Writter
06f670046b Fix: #1731
Now checks if the domain is suspended (WEB or EMAIL or DNS) if so, continue to the next domain
2018-10-25 19:44:46 +00:00
Skull Writter
50205c99ec supose fix to #1526
i cannot see any diference, but on debian it apears that there is an diference.
maybe because the system has tis var exported? (DISK)
2018-10-25 19:20:08 +00:00
Serghey Rodin
cbbf27fc46 Additional argument check for remote hosts 2018-10-18 14:36:17 +03:00
Serghey Rodin
32fbc253a9 Additional argument check for remote hosts 2018-10-18 14:20:14 +03:00
Serghey Rodin
67a0e8d108 limit config visibility to /etc and /var/lib 2018-10-17 22:27:06 +03:00
Skull Writter
1ba6d24189 Typo in function name 2018-08-31 15:49:32 +00:00
dpeca
df7cccac4c Little fix for previous commit
see 563a9d8b10
2018-08-12 04:25:18 +02:00
dpeca
563a9d8b10 Avoid blocking v-backup-user because of already dumped db
Well, in one db.conf I found duplicated entry for the same database.

root@btvc:~# cat /usr/local/vesta/data/users/btvc2011/db.conf
DB='btvc2011_cart' DBUSER='btvc2011_9091dn' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='1' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_admin' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_david' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_djn' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_jd' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_oscar' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''

Obviously different users has access to the same database.
I know that this is impossible to create in Vesta.
But @Skamasle thirt-party script for importing cPanels backup obviously CAN do that... and many people use that cPanel importer.

This fix will avoid databases that are already dumped.
Without this fix backup script get stuck on stdin waiting for:
gzip: /backup/tmp.4YlV9Yr4m5/db/btvc2011_cart/btvc2011_cart.mysql.sql.gz already exists; do you wish to overwrite (y or n)?
2018-08-12 03:17:01 +02:00
Dmitry Bannik
98542d69bc Fix editing backup exclusions 2018-07-27 23:59:53 +03:00
Serghey Rodin
7f3e7d5b63 ip.sh include missing 2018-06-24 19:12:43 +03:00
Serghey Rodin
f59ebc4f65 Fix: nginx restart order 2018-06-14 18:00:44 +03:00
Serghey Rodin
f68bb795de Fixes for proper EIP handling 2018-06-08 11:40:42 +03:00
dpeca
73a0b3fd95 Configurable $BACKUP_TEMP in v-restore-user 2018-06-02 00:55:52 +02:00
dpeca
11eca5dfda Configurable $BACKUP_TEMP in v-backup-user 2018-06-02 00:52:31 +02:00
Serghey Rodin
21278272ad Merge pull request #1586 from moucho/suspend_dns
Adding and removing includes when suspending/unsuspending DNS zones
2018-06-01 15:49:06 +03:00
Alexandros Ioannides
cd61896176 Switch from /tmp to /backup 2018-06-01 13:57:37 +03:00
Anton Reutov
a5d0011ef7 Merge pull request #1590 from ioannidesalex/patch-34
Replace /tmp with $BACKUP
2018-06-01 09:52:54 +02:00
Serghey Rodin
828c8450e4 Merge pull request #1554 from vsitnic/master
set softquota=hardquota
2018-06-01 00:48:25 +03:00
Alexandros Ioannides
b06ddecbc1 Replace /tmp with $BACKUP
/tmp size is not enough for larger websites.
2018-05-31 21:21:16 +03:00
Marcos
b2649fd3cc Fix Adding alias DNS from web panel 2018-05-29 23:42:58 +02:00
Marcos
b143792750 Adding and removing includes when suspending/unsuspending DNS zones 2018-05-29 20:01:29 +02:00
Marcos
85b3578f9c Fix rebuild for some user names 2018-05-21 03:55:05 +02:00