Skip to content

Commit b82c89a

Browse files
feat(worldcoin-attest): Add ExecStartPre for permissions on /usr/persistent/se (#1305)
Added ExecStartPre commands to set permissions and ownership for /usr/persistent/se.
1 parent 3dbef13 commit b82c89a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

attest/debian/orb-attest.worldcoin-attest.service

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/worldcoin_bus_socket
2121
Environment=RUST_BACKTRACE=1
2222
SyslogIdentifier=worldcoin-attest
2323
Restart=on-failure
24+
# In case /usr/persistent/se was manually re-proved under root
25+
ExecStartPre=+/bin/chmod -R +X /usr/persistent/se
26+
ExecStartPre=+/bin/chown -R worldcoin:worldcoin /usr/persistent/se
2427
# TODO: use the orb-info crate
2528
ExecStart=/bin/bash -c 'export ORB_ID="$("/usr/local/bin/orb-id")"; exec /usr/local/bin/orb-attest'
2629
IPAccounting=yes

0 commit comments

Comments
 (0)