mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Do copy the openssl configuration file
This commit is contained in:
parent
cc72a24893
commit
21d1aa72d4
1 changed files with 11 additions and 5 deletions
|
@ -4,12 +4,16 @@ set -e
|
|||
force=$1
|
||||
|
||||
function safe_copy () {
|
||||
if [ $force ]; then
|
||||
sudo yunohost service safecopy \
|
||||
-s ssl $1 $2 --force
|
||||
if [ ! -f /etc/yunohost/installed ]; then
|
||||
sudo cp $1 $2
|
||||
else
|
||||
sudo yunohost service safecopy \
|
||||
-s ssl $1 $2
|
||||
if [ $force ]; then
|
||||
sudo yunohost service safecopy \
|
||||
-s ssl $1 $2 --force
|
||||
else
|
||||
sudo yunohost service safecopy \
|
||||
-s ssl $1 $2
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -19,6 +23,8 @@ ssl_dir=/usr/share/yunohost/yunohost-config/ssl/yunoCA
|
|||
sudo mkdir -p /etc/yunohost/certs/yunohost.org
|
||||
sudo mkdir -p $ssl_dir/{ca,certs,crl,newcerts}
|
||||
|
||||
safe_copy openssl.cnf $ssl_dir/openssl.cnf
|
||||
|
||||
if [ ! -f $ssl_dir/serial ]; then
|
||||
echo "01" | sudo tee $ssl_dir/serial
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue