summaryrefslogtreecommitdiff
path: root/linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-05-23 17:02:01 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-05-23 17:02:01 +0530
commita4e934512c56c0f9fb574f1169d8213e2730a014 (patch)
tree7d1c3448a64f96d150dfc525871f69353990c2ba /linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst
parent3e152dd02b3d696d65700c7b39fe5f1e7d7e50ae (diff)
Moved jar service file in deb to /opt/mycompany dir
Diffstat (limited to 'linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst')
-rwxr-xr-xlinux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst9
1 files changed, 5 insertions, 4 deletions
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