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
|
force=$1
|
||||||
|
|
||||||
function safe_copy () {
|
function safe_copy () {
|
||||||
if [ $force ]; then
|
if [ ! -f /etc/yunohost/installed ]; then
|
||||||
sudo yunohost service safecopy \
|
sudo cp $1 $2
|
||||||
-s ssl $1 $2 --force
|
|
||||||
else
|
else
|
||||||
sudo yunohost service safecopy \
|
if [ $force ]; then
|
||||||
-s ssl $1 $2
|
sudo yunohost service safecopy \
|
||||||
|
-s ssl $1 $2 --force
|
||||||
|
else
|
||||||
|
sudo yunohost service safecopy \
|
||||||
|
-s ssl $1 $2
|
||||||
|
fi
|
||||||
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 /etc/yunohost/certs/yunohost.org
|
||||||
sudo mkdir -p $ssl_dir/{ca,certs,crl,newcerts}
|
sudo mkdir -p $ssl_dir/{ca,certs,crl,newcerts}
|
||||||
|
|
||||||
|
safe_copy openssl.cnf $ssl_dir/openssl.cnf
|
||||||
|
|
||||||
if [ ! -f $ssl_dir/serial ]; then
|
if [ ! -f $ssl_dir/serial ]; then
|
||||||
echo "01" | sudo tee $ssl_dir/serial
|
echo "01" | sudo tee $ssl_dir/serial
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue