[fix] Clean old files

This commit is contained in:
Josué Tille 2020-05-07 00:40:24 +02:00 committed by Alexandre Aubin
parent 9bb8c0437d
commit e6a52f09bd

View file

@ -55,12 +55,18 @@ do_pre_regen() {
fi
# remove legacy configuration file
[ ! -f /etc/ldap/slapd-yuno.conf ] \
|| touch "${pending_dir}/etc/ldap/slapd-yuno.conf"
[ ! -f /etc/ldap/slapd.conf ] \
|| touch "${pending_dir}/etc/ldap/slapd.conf"
[ ! -f /etc/ldap/schema/yunohost.schema ] \
|| touch "${pending_dir}/etc/ldap/schema/yunohost.schema"
if [ -f /etc/ldap/slapd-yuno.conf ]; then
mkdir -p ${pending_dir}/etc/ldap
touch "${pending_dir}/etc/ldap/slapd-yuno.conf"
fi
if [ -f /etc/ldap/slapd.conf ]; then
mkdir -p ${pending_dir}/etc/ldap
touch "${pending_dir}/etc/ldap/slapd.conf"
fi
if [ -f /etc/ldap/schema/yunohost.schema ]; then
mkdir -p ${pending_dir}/etc/ldap/schema
touch "${pending_dir}/etc/ldap/schema/yunohost.schema"
fi
cd /usr/share/yunohost/templates/slapd