cp -p preserves the original user ownership from ~/.local/share/omarchy, which would allow an unprivileged user to modify a script that runs as root during suspend/hibernate.
5 lines
245 B
Bash
5 lines
245 B
Bash
echo "Install system-sleep hook to unmount FUSE before suspend/hibernate"
|
|
|
|
sudo mkdir -p /usr/lib/systemd/system-sleep
|
|
sudo install -m 0755 -o root -g root "$OMARCHY_PATH/default/systemd/system-sleep/unmount-fuse" /usr/lib/systemd/system-sleep/
|