mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-05-07 13:46:52 +02:00
fix ssl backup restore
This commit is contained in:
@@ -373,7 +373,9 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
|
||||
|
||||
# Copying ssl certificates
|
||||
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.//")
|
||||
cp -f $tmpdir/web/$domain/conf/ssl.$crt $USER_DATA/ssl/$crt
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user