diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-06-08 20:10:48 +0200 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-06-08 20:10:48 +0200 |
| commit | cd2ccfea0782f385b5fda990ba3dc53d8a2e6c73 (patch) | |
| tree | 471342628bde94abaa1e02765a29ecb4f07fc050 | |
| parent | ec030af1007c86b9330b1fbb48a8e806663ebcfb (diff) | |
p-bridge
| -rwxr-xr-x | scripts/.local/bin/protonmail-bridge | 20 | ||||
| -rwxr-xr-x | stow.sh | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/scripts/.local/bin/protonmail-bridge b/scripts/.local/bin/protonmail-bridge new file mode 100755 index 0000000..9114d81 --- /dev/null +++ b/scripts/.local/bin/protonmail-bridge @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# by ivan + +name="protonmail-bridge daemon" +description="" +#command=/usr/bin/protonmail-bridge +command=/home/protonmail/proton-bridge +#command_args="${protonmail-bridge_args}" +command_args="--no-window --noninteractive" +command_user="protonmail:protonmail" +# protonmail-bridge does not daemonize itself +command_background=true +pidfile=/run/protonmail-bridge.pid + +depend() { + need net + use dns +} @@ -4,3 +4,5 @@ rm ~/.config/mimeapps.list rm ~/.config/user-dirs.dirs stow -R $(ls -d */) + +doas ln -s "$HOME/.local/bin/protonmail-bridge" "/etc/init.d/protonmail-bridge" |
