[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 fi
# remove legacy configuration file # remove legacy configuration file
[ ! -f /etc/ldap/slapd-yuno.conf ] \ if [ -f /etc/ldap/slapd-yuno.conf ]; then
|| touch "${pending_dir}/etc/ldap/slapd-yuno.conf" mkdir -p ${pending_dir}/etc/ldap
[ ! -f /etc/ldap/slapd.conf ] \ touch "${pending_dir}/etc/ldap/slapd-yuno.conf"
|| touch "${pending_dir}/etc/ldap/slapd.conf" fi
[ ! -f /etc/ldap/schema/yunohost.schema ] \ if [ -f /etc/ldap/slapd.conf ]; then
|| touch "${pending_dir}/etc/ldap/schema/yunohost.schema" 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 cd /usr/share/yunohost/templates/slapd