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}