From a4e934512c56c0f9fb574f1169d8213e2730a014 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sat, 23 May 2026 17:02:01 +0530 Subject: Moved jar service file in deb to /opt/mycompany dir --- linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst') diff --git a/linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst b/linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst index 19eec59..430ba0a 100755 --- a/linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst +++ b/linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst @@ -16,10 +16,11 @@ if [ "$1" == "configure" ] && [ -z "$2" ]; then fi # Set directory ownership and permissions - Application jar file not to be read by other system users -chown -R root:fs-spring-boot-kamal /opt/fs-spring-boot-kamal -chmod 750 /opt/fs-spring-boot-kamal -chmod 750 /opt/fs-spring-boot-kamal/app -chmod 640 /opt/fs-spring-boot-kamal/app/fs-spring-boot-kamal.jar +chown -R root:fs-spring-boot-kamal /opt/mycompany/fs-spring-boot-kamal +chmod 755 /opt/mycompany +chmod 750 /opt/mycompany/fs-spring-boot-kamal +chmod 750 /opt/mycompany/fs-spring-boot-kamal/app +chmod 640 /opt/mycompany/fs-spring-boot-kamal/app/fs-spring-boot-kamal.jar # Set directory ownership and permissions - Config files not to be read by other system users chown -R root:fs-spring-boot-kamal /etc/fs-spring-boot-kamal -- cgit v1.2.3