mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Clean old files
This commit is contained in:
parent
9bb8c0437d
commit
e6a52f09bd
1 changed files with 12 additions and 6 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue