From 20e8805e3b60178df804b1acc4714f9d4e754572 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 25 Feb 2023 16:01:55 +0100 Subject: [PATCH] misc: automatic get rid of /etc/profile.d/check_yunohost_is_installed.sh when yunohost is postinstalled --- hooks/conf_regen/01-yunohost | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hooks/conf_regen/01-yunohost b/hooks/conf_regen/01-yunohost index 51022a4e5..7e03d1978 100755 --- a/hooks/conf_regen/01-yunohost +++ b/hooks/conf_regen/01-yunohost @@ -245,6 +245,11 @@ do_post_regen() { rm -f /etc/dpkg/origins/default ln -s /etc/dpkg/origins/yunohost /etc/dpkg/origins/default fi + + if test -e /etc/yunohost/installed && test -e /etc/profile.d/check_yunohost_is_installed.sh + then + rm /etc/profile.d/check_yunohost_is_installed.sh + fi } do_$1_regen ${@:2}