[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to remove old conffile when switching to ucf



> I'm not sure what that means exactly: are you installing some files
> below /usr/ to then deploy as conffile with ucf below /etc, but in a
> different path than /etc/jupyterhub/config/jupyterhub_config.d/
> ?

I think I forgot to answer this question...

In a previous package the /etc/jupyterhub/jupyterhub_config.py was generated during the preinst script.
two more useless configuration files were distributes in the package

/etc/jupyterhub/config/jupyterhub_config.d/<file1>
/etc/jupyterhub/config/jupyterhub_config.d/<file2>


Now I generate the default configure file during the build  put it  under
/usr/share/jupyterhub/jupytherhub_config.py and manage it  via ucf.

remove the useless <file1> and <file2> via the rm_conffile.

but at the end, piuparts tell me that

2m59.4s INFO: Warning: Package purging left files on system:
  /etc/jupyterhub/	 owned by: jupyterhub
  /etc/jupyterhub/config/	 not owned
  /etc/jupyterhub/config/jupyterhub_config.d/	 not owned
2m59.4s INFO: PASS: Installation, upgrade and purging tests.

/etc/jupyterhub comes from debian/dirs in order to avoid failure during the ucf config file generation.

So now I need the right way to remove

/etc/jupyterhub/config/jupyterhub_config.d/

and

/etc/jupyterhub/config/

Is it clearer ?

Cheers




Reply to: