diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-23 17:02:01 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-23 17:02:01 +0530 |
| commit | a4e934512c56c0f9fb574f1169d8213e2730a014 (patch) | |
| tree | 7d1c3448a64f96d150dfc525871f69353990c2ba /linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst | |
| parent | 3e152dd02b3d696d65700c7b39fe5f1e7d7e50ae (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-x | linux/deb/02-fs-spring-boot-kamal/package/DEBIAN/postinst | 9 |
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 |
