mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
fix ssl backup restore
This commit is contained in:
parent
9a9dabb0c9
commit
8a217352fe
1 changed files with 3 additions and 1 deletions
|
@ -373,7 +373,9 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
|
||||||
|
|
||||||
# Copying ssl certificates
|
# Copying ssl certificates
|
||||||
if [ "$SSL" = 'yes' ]; then
|
if [ "$SSL" = 'yes' ]; then
|
||||||
for crt in $(ls $tmpdir/web/$domain/conf |grep ssl); do
|
certificates=$(ls $tmpdir/web/$domain/conf| grep ssl)
|
||||||
|
certificates=$(echo "$certificates" |grep $domain)
|
||||||
|
for crt in $certificates; do
|
||||||
crt=$(echo $crt|sed -e "s/ssl.//")
|
crt=$(echo $crt|sed -e "s/ssl.//")
|
||||||
cp -f $tmpdir/web/$domain/conf/ssl.$crt $USER_DATA/ssl/$crt
|
cp -f $tmpdir/web/$domain/conf/ssl.$crt $USER_DATA/ssl/$crt
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue