Created
February 13, 2017 07:59
-
-
Save CODeRUS/35e877a396a3324729407e88e215ffb0 to your computer and use it in GitHub Desktop.
Scriptlets skeleton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %pre | |
| case "$*" in | |
| 1) | |
| echo Installing package | |
| ;; | |
| 2) | |
| echo Upgrading package | |
| ;; | |
| *) echo case "$*" not handled in pre | |
| esac | |
| %preun | |
| case "$*" in | |
| 0) | |
| echo Uninstalling package | |
| ;; | |
| 1) | |
| echo Upgrading package | |
| ;; | |
| *) echo case "$*" not handled in preun | |
| esac | |
| %post | |
| case "$*" in | |
| 1) | |
| echo Installing package | |
| ;; | |
| 2) | |
| echo Upgrading package | |
| ;; | |
| *) echo case "$*" not handled in post | |
| esac | |
| %postun | |
| case "$*" in | |
| 0) | |
| echo Uninstalling package | |
| ;; | |
| 1) | |
| echo Upgrading package | |
| ;; | |
| *) echo case "$*" not handled in postun | |
| esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment