From c8c570933ebb0b456601bf849b39a25a0aa1702e Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Tue, 21 Feb 2023 17:18:39 -0500 Subject: [PATCH] added seafile config and systemd unit file --- meta/base.yaml | 1 + meta/configs/seafile.yaml | 8 ++++++++ meta/profiles/arch.desktop | 1 + meta/profiles/arch.thinkpad | 1 + services/seafile.service | 12 ++++++++++++ 5 files changed, 23 insertions(+) create mode 100644 meta/configs/seafile.yaml create mode 100644 services/seafile.service diff --git a/meta/base.yaml b/meta/base.yaml index ad10b04..71e254f 100644 --- a/meta/base.yaml +++ b/meta/base.yaml @@ -10,3 +10,4 @@ - clean: ~/: ~/.config: + ~/.config/systemd/user: diff --git a/meta/configs/seafile.yaml b/meta/configs/seafile.yaml new file mode 100644 index 0000000..4e6cc72 --- /dev/null +++ b/meta/configs/seafile.yaml @@ -0,0 +1,8 @@ +- link: + ~/.config/systemd/user/seafile.service: services/seafile.service + +- shell: + - + command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S seafile seafile-client" + description: "Installing seafile" + - command: "systemctl --user enable seafile && systemctl --user start seafile" diff --git a/meta/profiles/arch.desktop b/meta/profiles/arch.desktop index fe05ce2..725b55a 100644 --- a/meta/profiles/arch.desktop +++ b/meta/profiles/arch.desktop @@ -16,3 +16,4 @@ rofi lf scripts calcurse +seafile diff --git a/meta/profiles/arch.thinkpad b/meta/profiles/arch.thinkpad index 3b6c440..402be8f 100644 --- a/meta/profiles/arch.thinkpad +++ b/meta/profiles/arch.thinkpad @@ -15,3 +15,4 @@ rofi lf scripts calcurse +seafile diff --git a/services/seafile.service b/services/seafile.service new file mode 100644 index 0000000..6ba3c54 --- /dev/null +++ b/services/seafile.service @@ -0,0 +1,12 @@ +[Unit] +Description=Seafile Daemon Startup +After=network.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/seaf-cli start +ExecStop=/usr/bin/seaf-cli stop +RemainAfterExit=yes + +[Install] +WantedBy=default.target