mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Do not delete ssl.$domain*
This commit is contained in:
parent
6db5f28ae5
commit
38137b3ba9
1 changed files with 8 additions and 2 deletions
|
@ -57,8 +57,14 @@ fi
|
|||
|
||||
# Deleting old certificate
|
||||
tmpdir=$(mktemp -p $HOMEDIR/$user/web/$domain/private -d)
|
||||
rm -f $HOMEDIR/$user/conf/web/ssl.$domain.*
|
||||
mv $USER_DATA/ssl/$domain.* $tmpdir
|
||||
rm -f $HOMEDIR/$user/conf/web/ssl.$domain.ca
|
||||
rm -f $HOMEDIR/$user/conf/web/ssl.$domain.crt
|
||||
rm -f $HOMEDIR/$user/conf/web/ssl.$domain.key
|
||||
rm -f $HOMEDIR/$user/conf/web/ssl.$domain.pem
|
||||
mv $USER_DATA/ssl/$domain.ca $tmpdir
|
||||
mv $USER_DATA/ssl/$domain.crt $tmpdir
|
||||
mv $USER_DATA/ssl/$domain.key $tmpdir
|
||||
mv $USER_DATA/ssl/$domain.pem $tmpdir
|
||||
chown -R $user:$user $tmpdir
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue