Removes workaround for extension directory permissions
Removes the systemd tmpfiles rule and service that attempted to fix permissions for extensions deployed to `/var/lib/lnbits/extensions`. This change is necessary because the initial approach of fixing permissions was not reliable and caused more issues than it solved. The intended approach is to provide a better method for managing extensions in a future update.
This commit is contained in:
parent
6b92936e69
commit
95ae96147d
1 changed files with 6 additions and 15 deletions
|
|
@ -104,21 +104,12 @@ in
|
||||||
# This will DELETE any extensions installed via the LNBits UI.
|
# This will DELETE any extensions installed via the LNBits UI.
|
||||||
#
|
#
|
||||||
# Option 1: Replace extensions directory entirely (use with caution)
|
# Option 1: Replace extensions directory entirely (use with caution)
|
||||||
# Create symlink and fix ownership of deployed extensions
|
# systemd.tmpfiles.rules = [
|
||||||
systemd.tmpfiles.rules = [
|
# # Set permissions on source directory so lnbits user can read it
|
||||||
"L+ /var/lib/lnbits/extensions - lnbits lnbits - /var/src/lnbits-extensions"
|
# "d /var/src/lnbits-extensions 0755 lnbits lnbits - -"
|
||||||
];
|
# # Create symlink with proper ownership
|
||||||
|
# "L+ /var/lib/lnbits/extensions - lnbits lnbits - /var/src/lnbits-extensions"
|
||||||
# Fix ownership of deployed extensions (krops deploys as root:root)
|
# ];
|
||||||
systemd.services.lnbits-fix-extensions-ownership = {
|
|
||||||
description = "Fix ownership of deployed LNBits extensions";
|
|
||||||
before = [ "lnbits.service" ];
|
|
||||||
wantedBy = [ "lnbits.service" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStart = "${pkgs.coreutils}/bin/chown -R lnbits:lnbits /var/src/lnbits-extensions";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#
|
#
|
||||||
# Option 2: Manually merge deployed extensions with existing ones
|
# Option 2: Manually merge deployed extensions with existing ones
|
||||||
# Copy deployed extensions into the extensions directory without replacing it:
|
# Copy deployed extensions into the extensions directory without replacing it:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue