From c797c377b22bfd42d68055aced9d05c32cd08d98 Mon Sep 17 00:00:00 2001 From: u5surf Date: Sat, 29 Apr 2023 23:12:58 +0900 Subject: [PATCH] Fix packager script post deinstall. * postremove.sh should be assigned +POST_DEINSTALL literally. --- scripts/packages/packager/local-entrypoint.sh | 2 +- scripts/packages/packager/signed-entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/packages/packager/local-entrypoint.sh b/scripts/packages/packager/local-entrypoint.sh index 1a764afab..792cf342d 100644 --- a/scripts/packages/packager/local-entrypoint.sh +++ b/scripts/packages/packager/local-entrypoint.sh @@ -13,7 +13,7 @@ mkdir -p /staging/usr/local/etc/rc.d cp nginx-agent.conf /staging/usr/local/etc/nginx-agent cp scripts/packages/nginx-agent /staging/usr/local/etc/rc.d cp scripts/packages/preinstall.sh /staging/+PRE_INSTALL -cp scripts/packages/postremove.sh /staging/+PRE_DEINSTALL +cp scripts/packages/postremove.sh /staging/+POST_DEINSTALL cp scripts/packages/postinstall.sh /staging/+POST_INSTALL cp scripts/packages/plist /staging cp build/nginx-agent /staging/usr/local/bin diff --git a/scripts/packages/packager/signed-entrypoint.sh b/scripts/packages/packager/signed-entrypoint.sh index cfd90d56b..641ac1619 100644 --- a/scripts/packages/packager/signed-entrypoint.sh +++ b/scripts/packages/packager/signed-entrypoint.sh @@ -18,7 +18,7 @@ mkdir -p staging/usr/local/etc/rc.d cp nginx-agent.conf staging/usr/local/etc/nginx-agent cp scripts/packages/nginx-agent staging/usr/local/etc/rc.d cp scripts/packages/preinstall.sh staging/+PRE_INSTALL -cp scripts/packages/postremove.sh staging/+PRE_DEINSTALL +cp scripts/packages/postremove.sh staging/+POST_DEINSTALL cp scripts/packages/postinstall.sh staging/+POST_INSTALL cp scripts/packages/plist staging cp build/nginx-agent staging/usr/local/bin