Fixed maintenance.sh for nosh-run-system-manager.install on 1.33
[archnosh.git] / maintenance.sh
blobea64fa5dde48595e2b2287f55b14c1417060a490
1 #!/bin/sh -e
2 # rename files in package/debian/ to work with the scriptlet builder
3 # i.e. Archlinux nomenclature for .install
5 # functions to apply for service bundles in *.p files
6 mv -v preinst.funcs pre_upgrade.funcs
7 mv -v postinst.funcs post_install.funcs
8 mv -v prerm.funcs pre_remove.funcs
9 mv -v postrm.funcs post_upgrade.funcs
11 # specific maintenance
12 mv -v nosh-bundles.postinst.extra nosh-bundles.post_install.extra
13 mv -v nosh-bundles.postrm.extra nosh-bundles.post_upgrade.extra
14 mv -v nosh-bundles.preinst.extra nosh-bundles.pre_upgrade.extra
15 mv -v nosh-bundles.prerm.extra nosh-bundles.pre_remove.extra
17 # runs external format import conversion
18 mv -v nosh-run-system-manager.postinst nosh-run-system-manager.post_upgrade
19 # needs to be done on install, explicitly for Archlinux
20 cp -v nosh-run-system-manager.post_upgrade nosh-run-system-manager.post_install
22 mv -v nosh-run-via-systemd.postinst.extra nosh-run-via-systemd.post_install
23 mv -v nosh-run-via-systemd.prerm.extra nosh-run-via-systemd.pre_remove
24 # was removed
25 # mv -v nosh-run-via-systemd.postrm.extra nosh-run-via-systemd.post_upgrade
26 mv -v nosh-run-via-systemd.postrm nosh-run-via-systemd.post_remove