From 8a288b90bc1c80a231f802a639cc40d52bd8311d Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sun, 15 Jun 2025 23:37:13 +0800 Subject: [PATCH] Add file header to debian scripts --- pkg/DEB/debian/postinst | 15 +++++++++++++-- pkg/DEB/debian/prerm | 11 +++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/pkg/DEB/debian/postinst b/pkg/DEB/debian/postinst index 6b22930..e846cb4 100755 --- a/pkg/DEB/debian/postinst +++ b/pkg/DEB/debian/postinst @@ -1,5 +1,16 @@ #!/bin/sh +# -------------------------------------------------------------- +# SPDX-License-Identifier: GPL-3.0-or-later +# -------------------------------------------------------------- +# DEB File : postinst +# File Authors : sanchuanhehe +# Contributors : Nil Null +# | +# Created On : <2025-06-14> +# Last Modified : <2025-06-15> +# # postinst script for chsrc +# -------------------------------------------------------------- set -e @@ -9,10 +20,10 @@ case "$1" in if command -v mandb >/dev/null 2>&1; then mandb -q /usr/share/man/man1/chsrc.1 2>/dev/null || true fi - + # Make sure chsrc is executable chmod +x /usr/bin/chsrc - + echo "chsrc has been successfully installed!" echo "Run 'chsrc help' to get started." ;; diff --git a/pkg/DEB/debian/prerm b/pkg/DEB/debian/prerm index 4b94d07..291ad8b 100755 --- a/pkg/DEB/debian/prerm +++ b/pkg/DEB/debian/prerm @@ -1,5 +1,16 @@ #!/bin/sh +# -------------------------------------------------------------- +# SPDX-License-Identifier: GPL-3.0-or-later +# -------------------------------------------------------------- +# DEB File : prerm +# File Authors : sanchuanhehe +# Contributors : Nil Null +# | +# Created On : <2025-06-14> +# Last Modified : <2025-06-15> +# # prerm script for chsrc +# -------------------------------------------------------------- set -e