[Slackbuilds-users] Slackbuilds: doinst.sh and douninst.sh

B. Watson urchlay at slackware.uk
Fri Jul 19 19:46:01 UTC 2024



On Fri, 19 Jul 2024, Alessandro Baggi wrote:

> 3. A clean process during package uninstall that clean created user/group, 
> start/stop system configuration in rc.local/rc.local_shutdown

Again I will say it:

Packages get *removed* when they get upgraded.

Anything a douninst.sh script does, happens when the package gets
upgraded. The douninst.sh script doesn't know know whether it's being
run due to a permanent removal or due to an upgrade.

Do you really want to delete the postgres user during the upgrade process?

Normally when you delete a user, you delete the user's files, too (userdel -r).

If you don't delete the files, upgrades are safe. But in that case,
if someone really does permanently remove the postgresql package, it's
not a clean removal: all the data that was in the databases is still
on the filesystem, taking up space... and no longer owned by any user.


More information about the SlackBuilds-users mailing list