mirror of
https://github.com/myvesta/vesta
synced 2025-07-07 13:31:53 -07:00
Merge pull request #37 from serghey-rodin/master
Updates from Official VestaCP
This commit is contained in:
commit
1b2d6959df
15 changed files with 31 additions and 28 deletions
|
@ -22,7 +22,7 @@ protocol=$(echo $protocol|tr '[:lower:]' '[:upper:]')
|
||||||
iptables="/sbin/iptables"
|
iptables="/sbin/iptables"
|
||||||
|
|
||||||
# Get vesta port by reading nginx.conf
|
# Get vesta port by reading nginx.conf
|
||||||
vestaport=$(grep 'listen' /usr/local/vesta/nginx/conf/nginx.conf | awk '{print $2}' | sed "s|;||")
|
vestaport=$(grep 'listen' $VESTA/nginx/conf/nginx.conf | awk '{print $2}' | sed "s|;||")
|
||||||
if [ -z "$vestaport" ]; then
|
if [ -z "$vestaport" ]; then
|
||||||
vestaport=8083
|
vestaport=8083
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -109,8 +109,8 @@ fi
|
||||||
|
|
||||||
# Requesting nonce / STEP 1
|
# Requesting nonce / STEP 1
|
||||||
answer=$(curl -s -I "$API/directory")
|
answer=$(curl -s -I "$API/directory")
|
||||||
nonce=$(echo "$answer" |grep Nonce |cut -f2 -d \ |tr -d '\r\n')
|
nonce=$(echo "$answer" |grep -i nonce |cut -f2 -d \ |tr -d '\r\n')
|
||||||
status=$(echo "$answer"|grep HTTP/1.1 |tail -n1 |cut -f 2 -d ' ')
|
status=$(echo "$answer"|grep HTTP/ |tail -n1 |cut -f 2 -d ' ')
|
||||||
if [[ "$status" -ne 200 ]]; then
|
if [[ "$status" -ne 200 ]]; then
|
||||||
check_result $E_CONNECT "Let's Encrypt nonce request status $status"
|
check_result $E_CONNECT "Let's Encrypt nonce request status $status"
|
||||||
fi
|
fi
|
||||||
|
@ -125,10 +125,10 @@ done
|
||||||
payload=$(echo "$payload"|sed "s/,$//")
|
payload=$(echo "$payload"|sed "s/,$//")
|
||||||
payload=$payload']}'
|
payload=$payload']}'
|
||||||
answer=$(query_le_v2 "$url" "$payload" "$nonce")
|
answer=$(query_le_v2 "$url" "$payload" "$nonce")
|
||||||
nonce=$(echo "$answer" |grep Nonce |cut -f2 -d \ |tr -d '\r\n')
|
nonce=$(echo "$answer" |grep -i nonce |cut -f2 -d \ |tr -d '\r\n')
|
||||||
authz=$(echo "$answer" |grep "acme/authz" |cut -f2 -d '"')
|
authz=$(echo "$answer" |grep "acme/authz" |cut -f2 -d '"')
|
||||||
finalize=$(echo "$answer" |grep 'finalize":' |cut -f4 -d '"')
|
finalize=$(echo "$answer" |grep 'finalize":' |cut -f4 -d '"')
|
||||||
status=$(echo "$answer" |grep HTTP/1.1 |tail -n1 |cut -f2 -d ' ')
|
status=$(echo "$answer" |grep HTTP/ |tail -n1 |cut -f2 -d ' ')
|
||||||
if [[ "$status" -ne 201 ]]; then
|
if [[ "$status" -ne 201 ]]; then
|
||||||
check_result $E_CONNECT "Let's Encrypt new auth status $status"
|
check_result $E_CONNECT "Let's Encrypt new auth status $status"
|
||||||
fi
|
fi
|
||||||
|
@ -139,8 +139,8 @@ for auth in $authz; do
|
||||||
answer=$(query_le_v2 "$auth" "$payload" "$nonce")
|
answer=$(query_le_v2 "$auth" "$payload" "$nonce")
|
||||||
url=$(echo "$answer" |grep -A3 $proto |grep url |cut -f 4 -d \")
|
url=$(echo "$answer" |grep -A3 $proto |grep url |cut -f 4 -d \")
|
||||||
token=$(echo "$answer" |grep -A3 $proto |grep token |cut -f 4 -d \")
|
token=$(echo "$answer" |grep -A3 $proto |grep token |cut -f 4 -d \")
|
||||||
nonce=$(echo "$answer" |grep Nonce |cut -f2 -d \ |tr -d '\r\n')
|
nonce=$(echo "$answer" |grep -i nonce |cut -f2 -d \ |tr -d '\r\n')
|
||||||
status=$(echo "$answer"|grep HTTP/1.1 |tail -n1 |cut -f 2 -d ' ')
|
status=$(echo "$answer"|grep HTTP/ |tail -n1 |cut -f 2 -d ' ')
|
||||||
if [[ "$status" -ne 200 ]]; then
|
if [[ "$status" -ne 200 ]]; then
|
||||||
check_result $E_CONNECT "Let's Encrypt acme/authz bad status $status"
|
check_result $E_CONNECT "Let's Encrypt acme/authz bad status $status"
|
||||||
fi
|
fi
|
||||||
|
@ -198,8 +198,8 @@ for auth in $authz; do
|
||||||
payload='{}'
|
payload='{}'
|
||||||
answer=$(query_le_v2 "$url" "$payload" "$nonce")
|
answer=$(query_le_v2 "$url" "$payload" "$nonce")
|
||||||
validation=$(echo "$answer"|grep -A1 $proto |tail -n1|cut -f4 -d \")
|
validation=$(echo "$answer"|grep -A1 $proto |tail -n1|cut -f4 -d \")
|
||||||
nonce=$(echo "$answer" |grep Nonce |cut -f2 -d \ |tr -d '\r\n')
|
nonce=$(echo "$answer" |grep -i nonce |cut -f2 -d \ |tr -d '\r\n')
|
||||||
status=$(echo "$answer"|grep HTTP/1.1 |tail -n1 |cut -f 2 -d ' ')
|
status=$(echo "$answer"|grep HTTP/ |tail -n1 |cut -f 2 -d ' ')
|
||||||
if [[ "$status" -ne 200 ]]; then
|
if [[ "$status" -ne 200 ]]; then
|
||||||
check_result $E_CONNECT "Let's Encrypt validation status $status"
|
check_result $E_CONNECT "Let's Encrypt validation status $status"
|
||||||
fi
|
fi
|
||||||
|
@ -224,8 +224,8 @@ ssl_dir=$($BIN/v-generate-ssl-cert "$domain" "info@$domain" "US" "California"\
|
||||||
csr=$(openssl req -in $ssl_dir/$domain.csr -outform DER |encode_base64)
|
csr=$(openssl req -in $ssl_dir/$domain.csr -outform DER |encode_base64)
|
||||||
payload='{"csr":"'$csr'"}'
|
payload='{"csr":"'$csr'"}'
|
||||||
answer=$(query_le_v2 "$finalize" "$payload" "$nonce")
|
answer=$(query_le_v2 "$finalize" "$payload" "$nonce")
|
||||||
nonce=$(echo "$answer" |grep Nonce |cut -f2 -d \ |tr -d '\r\n')
|
nonce=$(echo "$answer" |grep -i nonce |cut -f2 -d \ |tr -d '\r\n')
|
||||||
status=$(echo "$answer"|grep HTTP/1.1 |tail -n1 |cut -f 2 -d ' ')
|
status=$(echo "$answer"|grep HTTP/ |tail -n1 |cut -f 2 -d ' ')
|
||||||
certificate=$(echo "$answer"|grep 'certificate":' |cut -f4 -d '"')
|
certificate=$(echo "$answer"|grep 'certificate":' |cut -f4 -d '"')
|
||||||
if [[ "$status" -ne 200 ]]; then
|
if [[ "$status" -ne 200 ]]; then
|
||||||
check_result $E_CONNECT "Let's Encrypt finalize bad status $status"
|
check_result $E_CONNECT "Let's Encrypt finalize bad status $status"
|
||||||
|
|
|
@ -103,16 +103,16 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# Requesting ACME nonce
|
# Requesting ACME nonce
|
||||||
nonce=$(curl -s -I "$API/directory" |grep Nonce |cut -f 2 -d \ |tr -d '\r\n')
|
nonce=$(curl -s -I "$API/directory" |grep -i nonce |cut -f2 -d\ |tr -d '\r\n')
|
||||||
|
|
||||||
# Creating ACME account
|
# Creating ACME account
|
||||||
url="$API/acme/new-acct"
|
url="$API/acme/new-acct"
|
||||||
payload='{"termsOfServiceAgreed": true}'
|
payload='{"termsOfServiceAgreed": true}'
|
||||||
answer=$(query_le_v2 "$url" "$payload" "$nonce")
|
answer=$(query_le_v2 "$url" "$payload" "$nonce")
|
||||||
kid=$(echo "$answer" |grep Location: |cut -f2 -d ' '|tr -d '\r')
|
kid=$(echo "$answer" |grep -i location: |cut -f2 -d ' '|tr -d '\r')
|
||||||
|
|
||||||
# Checking answer status
|
# Checking answer status
|
||||||
status=$(echo "$answer" |grep HTTP/1.1 |tail -n1 |cut -f2 -d ' ')
|
status=$(echo "$answer" |grep HTTP/ |tail -n1 |cut -f2 -d ' ')
|
||||||
if [[ "${status:0:2}" -ne "20" ]]; then
|
if [[ "${status:0:2}" -ne "20" ]]; then
|
||||||
check_result $E_CONNECT "Let's Encrypt acc registration failed $status"
|
check_result $E_CONNECT "Let's Encrypt acc registration failed $status"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Source: vesta-ioncube
|
Source: vesta-ioncube
|
||||||
Package: vesta-ioncube
|
Package: vesta-ioncube
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 0.9.8-24
|
Version: 0.9.8-25
|
||||||
Section: admin
|
Section: admin
|
||||||
Maintainer: Serghey Rodin <skid@vestacp.com>
|
Maintainer: Serghey Rodin <skid@vestacp.com>
|
||||||
Homepage: https://www.ioncube.com
|
Homepage: https://www.ioncube.com
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Source: vesta-nginx
|
Source: vesta-nginx
|
||||||
Package: vesta-nginx
|
Package: vesta-nginx
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 0.9.8-24
|
Version: 0.9.8-25
|
||||||
Section: admin
|
Section: admin
|
||||||
Maintainer: Predrag Damnjanovic <predrag@hostingpanel.dev>
|
Maintainer: Predrag Damnjanovic <predrag@hostingpanel.dev>
|
||||||
Homepage: http://vesta.hostingpanel.dev
|
Homepage: http://vesta.hostingpanel.dev
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Source: vesta-php
|
Source: vesta-php
|
||||||
Package: vesta-php
|
Package: vesta-php
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 0.9.8-24
|
Version: 0.9.8-25
|
||||||
Section: admin
|
Section: admin
|
||||||
Maintainer: Predrag Damnjanovic <predrag@hostingpanel.dev>
|
Maintainer: Predrag Damnjanovic <predrag@hostingpanel.dev>
|
||||||
Homepage: http://vesta.hostingpanel.dev
|
Homepage: http://vesta.hostingpanel.dev
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Source: vesta-softaculous
|
Source: vesta-softaculous
|
||||||
Package: vesta-softaculous
|
Package: vesta-softaculous
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 0.9.8-24
|
Version: 0.9.8-25
|
||||||
Section: admin
|
Section: admin
|
||||||
Maintainer: Serghey Rodin <skid@vestacp.com>
|
Maintainer: Serghey Rodin <skid@vestacp.com>
|
||||||
Homepage: https://www.softaculous.com
|
Homepage: https://www.softaculous.com
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Source: vesta
|
Source: vesta
|
||||||
Package: vesta
|
Package: vesta
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 0.9.8-24
|
Version: 0.9.8-25
|
||||||
Section: admin
|
Section: admin
|
||||||
Maintainer: Predrag Damnjanovic <predrag@hostingpanel.dev>
|
Maintainer: Predrag Damnjanovic <predrag@hostingpanel.dev>
|
||||||
Homepage: http://vesta.hostingpanel.dev
|
Homepage: http://vesta.hostingpanel.dev
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: vesta-ioncube
|
Name: vesta-ioncube
|
||||||
Version: 0.9.8
|
Version: 0.9.8
|
||||||
Release: 24
|
Release: 25
|
||||||
Summary: ionCube Loader
|
Summary: ionCube Loader
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: "Freely redistributable without restriction"
|
License: "Freely redistributable without restriction"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: vesta-nginx
|
Name: vesta-nginx
|
||||||
Version: 0.9.8
|
Version: 0.9.8
|
||||||
Release: 24
|
Release: 25
|
||||||
Summary: Vesta Control Panel
|
Summary: Vesta Control Panel
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: BSD-like
|
License: BSD-like
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: vesta-php
|
Name: vesta-php
|
||||||
Version: 0.9.8
|
Version: 0.9.8
|
||||||
Release: 24
|
Release: 25
|
||||||
Summary: Vesta Control Panel
|
Summary: Vesta Control Panel
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPL
|
License: GPL
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: vesta-softaculous
|
Name: vesta-softaculous
|
||||||
Version: 0.9.8
|
Version: 0.9.8
|
||||||
Release: 24
|
Release: 25
|
||||||
Summary: Vesta Control Panel
|
Summary: Vesta Control Panel
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: Softaculous License
|
License: Softaculous License
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: vesta
|
Name: vesta
|
||||||
Version: 0.9.8
|
Version: 0.9.8
|
||||||
Release: 24
|
Release: 25
|
||||||
Summary: Vesta Control Panel
|
Summary: Vesta Control Panel
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPL
|
License: GPL
|
||||||
|
@ -68,6 +68,10 @@ fi
|
||||||
%config(noreplace) %{_vestadir}/web/css/uploadify.css
|
%config(noreplace) %{_vestadir}/web/css/uploadify.css
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 15 2019 Serghey Rodin <builder@vestacp.com> - 0.9.8-25
|
||||||
|
- Security bugfixes
|
||||||
|
- LEv2 idn fix
|
||||||
|
|
||||||
* Mon Apr 18 2019 Serghey Rodin <builder@vestacp.com> - 0.9.8-24
|
* Mon Apr 18 2019 Serghey Rodin <builder@vestacp.com> - 0.9.8-24
|
||||||
- Bugfixes
|
- Bugfixes
|
||||||
- Security patches
|
- Security patches
|
||||||
|
@ -75,7 +79,6 @@ fi
|
||||||
- Server LE
|
- Server LE
|
||||||
- i18n updates
|
- i18n updates
|
||||||
|
|
||||||
|
|
||||||
* Thu Oct 18 2018 Serghey Rodin <builder@vestacp.com> - 0.9.8-23
|
* Thu Oct 18 2018 Serghey Rodin <builder@vestacp.com> - 0.9.8-23
|
||||||
- Security fixes
|
- Security fixes
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,4 @@ rm -f /usr/local/vesta/data/users/admin/notifications.conf
|
||||||
/usr/local/vesta/bin/v-add-user-notification admin "File Manager" "Browse, copy, edit, view, and retrieve all your web domain files using a fully featured <a href='http://vestacp.com/features/#filemanager'>File Manager</a>. Plugin is available for <a href='/edit/server/?lead=filemanager#module-filemanager'>purchase</a>." 'filemanager'
|
/usr/local/vesta/bin/v-add-user-notification admin "File Manager" "Browse, copy, edit, view, and retrieve all your web domain files using a fully featured <a href='http://vestacp.com/features/#filemanager'>File Manager</a>. Plugin is available for <a href='/edit/server/?lead=filemanager#module-filemanager'>purchase</a>." 'filemanager'
|
||||||
/usr/local/vesta/bin/v-add-user-notification admin "Chroot SFTP" "If you want to have SFTP accounts that will be used only to transfer files (and not to SSH), you can <a href='/edit/server/?lead=sftp#module-sftp'>purchase</a> and enable <a href='http://vestacp.com/features/#sftpchroot'>SFTP Chroot</a>"
|
/usr/local/vesta/bin/v-add-user-notification admin "Chroot SFTP" "If you want to have SFTP accounts that will be used only to transfer files (and not to SSH), you can <a href='/edit/server/?lead=sftp#module-sftp'>purchase</a> and enable <a href='http://vestacp.com/features/#sftpchroot'>SFTP Chroot</a>"
|
||||||
/usr/local/vesta/bin/v-add-user-notification admin "Softaculous" "Softaculous is one of the best Auto Installers and it is finally <a href='/edit/server/?lead=sftp#module-softaculous'>available</a>"
|
/usr/local/vesta/bin/v-add-user-notification admin "Softaculous" "Softaculous is one of the best Auto Installers and it is finally <a href='/edit/server/?lead=sftp#module-softaculous'>available</a>"
|
||||||
/usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-24" "This release is about stability and refinement. We added Let's Encrypt v2 support and added server certificate management tools. For more information please read <a href='http://vestacp.com/roadmap/#0.9.8-23'>release notes</a>"
|
/usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-25" "This release is about stability and refinement. We added Let's Encrypt v2 support and added server certificate management tools. For more information please read <a href='http://vestacp.com/history/#0.9.8-25'>release notes</a>"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Vesta Serbian sr_SR language file
|
* Vesta Serbian sr_SR language file
|
||||||
* Translation base taken from Bosnian translation file and adapted to Serbian (with a lot of modifications)
|
* Translation base taken from Bosnian translation file and adapted to Serbian (with lot of modifications)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$LANG['sr'] = array(
|
$LANG['sr'] = array(
|
||||||
|
@ -559,7 +559,7 @@ $LANG['sr'] = array(
|
||||||
'MAIL Server' => 'MAIL Server',
|
'MAIL Server' => 'MAIL Server',
|
||||||
'Antivirus' => 'Antivirus',
|
'Antivirus' => 'Antivirus',
|
||||||
'AntiSpam' => 'AntiSpam',
|
'AntiSpam' => 'AntiSpam',
|
||||||
'Use Web Domain SSL Certificate' => 'Use Web Domain SSL Certificate',
|
'Use Web Domain SSL Certificate' => 'Koristi Web Domain SSL sertifikat',
|
||||||
'Webmail URL' => 'Webmail URL',
|
'Webmail URL' => 'Webmail URL',
|
||||||
'MySQL Support' => 'MySQL podrška',
|
'MySQL Support' => 'MySQL podrška',
|
||||||
'phpMyAdmin URL' => 'phpMyAdmin URL',
|
'phpMyAdmin URL' => 'phpMyAdmin URL',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue