From 57ad4154926d0099f206cf5279096e3f28133a01 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 2 Dec 2013 13:24:09 -0500 Subject: [PATCH] Add plist and vim config.yml in seedbox script --- install/seedbox | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/install/seedbox b/install/seedbox index 893eeafc..91ab219e 100755 --- a/install/seedbox +++ b/install/seedbox @@ -8,9 +8,38 @@ pip install transmissionrpc while [ $# -gt 0 ]; do case "$1" in - "--daemon") + "--daemon") if is_mac; then brew install transmission + + plistf="~/Library/LaunchAgents/com.flexget.plist" + if [ ! -f "$plistf" ]; then + cat <<-EOF > "$plistf" + + + + + Label + com.flexget + ProgramArguments + + /usr/local/bin/flexget + --cron + + Nice + 1 + StartInterval + 900 + RunAtLoad + + + +EOF + fi + + launchctl load -w "$plistf" + mkdir -p ~/.flexget + vim ~/.flexget/config.yml elif is_deb; then sudo add-apt-repository ppa:transmissionbt/ppa pkg_install transmission-cli transmission-daemon transmission-common