diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-23 14:50:05 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-23 14:50:05 +0530 |
| commit | ed1837534a0a9a1ab8f8291cff73be031a5d493b (patch) | |
| tree | fbfb92615dcbbd250e7529c7afc00066fc72ef13 /linux/deb/01-fs-hello-kamal/package/DEBIAN/postinst | |
| parent | fe8b0606b434bb17f870cf9e6ba473c2ef39ca1f (diff) | |
Dir rename
Diffstat (limited to 'linux/deb/01-fs-hello-kamal/package/DEBIAN/postinst')
| -rwxr-xr-x | linux/deb/01-fs-hello-kamal/package/DEBIAN/postinst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linux/deb/01-fs-hello-kamal/package/DEBIAN/postinst b/linux/deb/01-fs-hello-kamal/package/DEBIAN/postinst new file mode 100755 index 0000000..978306d --- /dev/null +++ b/linux/deb/01-fs-hello-kamal/package/DEBIAN/postinst @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +if [ "$1" == "configure" ] && [ -z "$2" ]; then + # Code here executes only during package install (but not during upgrade) + echo "postinst script is running and this line gets printed during first install of the package" +fi + +echo "postinst script is running and this line gets printed during install or upgrade of the package." |
