regenconf: drop old legacy code

This commit is contained in:
Alexandre Aubin 2021-09-21 16:12:21 +02:00
parent a6c72566a5
commit 2318ffc493
2 changed files with 0 additions and 10 deletions

View file

@ -71,10 +71,6 @@ do_pre_regen() {
cd /usr/share/yunohost/templates/yunohost cd /usr/share/yunohost/templates/yunohost
# Legacy code that can be removed once on bullseye
touch /etc/yunohost/services.yml
yunohost tools shell -c "from yunohost.service import _get_services, _save_services; _save_services(_get_services())"
mkdir -p $pending_dir/etc/systemd/system mkdir -p $pending_dir/etc/systemd/system
mkdir -p $pending_dir/etc/cron.d/ mkdir -p $pending_dir/etc/cron.d/
mkdir -p $pending_dir/etc/cron.daily/ mkdir -p $pending_dir/etc/cron.daily/

View file

@ -51,12 +51,6 @@ do_post_regen() {
systemctl daemon-reload systemctl daemon-reload
fi fi
# Legacy stuff to enable the new yunomdns service on legacy systems
if [[ -e /etc/avahi/avahi-daemon.conf ]] && grep -q 'yunohost' /etc/avahi/avahi-daemon.conf
then
systemctl enable yunomdns
fi
[[ -z "$regen_conf_files" ]] \ [[ -z "$regen_conf_files" ]] \
|| systemctl restart yunomdns || systemctl restart yunomdns
} }