aethernal-agent 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/aethernal_agent/docker/container_settings.rb +1 -1
- data/lib/aethernal_agent/plugins/jdownloader/files/jdownloader.service +13 -0
- data/lib/aethernal_agent/plugins/jdownloader/jdownloader.rb +38 -0
- data/lib/aethernal_agent/plugins/jdownloader/manifest.yml +53 -0
- data/lib/aethernal_agent/plugins/jdownloader/meta/jdownloader.png +0 -0
- data/lib/aethernal_agent/plugins/jdownloader/templates/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json.erb +5 -0
- data/lib/aethernal_agent/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e35a58db28ece4a11621fb3e4ad4b75a0d23879d589e4b8a8203a353f14f491
|
4
|
+
data.tar.gz: 2b01f0a0d161ab5ebcb55d26f251ce13ba20557e8b7eedb45c45f5b4c91a1633
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0594005e2d34724bb37ee4bfcb03cf3c49ada03d4909aa403305ac60f8129ed4194f0b5f7b4c0cfc18afc59a9e47d79e100b434e921539337735e9487557e066'
|
7
|
+
data.tar.gz: b5b3adc1f2cac8ba656b4f73fe2fc727c754eeb5296211434e59f034b89ab8e9398d5e2dd0a1a698ef87f4b7fdeded7bf6430401ceff9c801d9842320151bc2e
|
data/Gemfile.lock
CHANGED
@@ -19,7 +19,7 @@ module AethernalAgent
|
|
19
19
|
'Env' => self.env,
|
20
20
|
'HostConfig' =>
|
21
21
|
{
|
22
|
-
'RestartPolicy' => {'Name' => '
|
22
|
+
'RestartPolicy' => {'Name' => 'unless-stopped'},
|
23
23
|
'PortBindings' => self.port_bindings,
|
24
24
|
'Binds' => self.volumes,
|
25
25
|
'Volumes' => {"/data" => {},"/config" => {}},
|
@@ -0,0 +1,13 @@
|
|
1
|
+
[Unit]
|
2
|
+
Description=Jdownloader
|
3
|
+
After=syslog.target network.target
|
4
|
+
|
5
|
+
[Service]
|
6
|
+
Type=simple
|
7
|
+
ExecStart=/usr/bin/java -XX:MaxHeapSize=512m -XX:InitialHeapSize=512m -jar %h/apps/jdownloader/JDownloader.jar -headless -afterupdate
|
8
|
+
TimeoutStopSec=20
|
9
|
+
KillMode=process
|
10
|
+
Restart=on-failure
|
11
|
+
|
12
|
+
[Install]
|
13
|
+
WantedBy=default.target
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class AethernalAgent::Jdownloader < AethernalAgent::App
|
2
|
+
def initialize(options = {})
|
3
|
+
super(options)
|
4
|
+
end
|
5
|
+
|
6
|
+
def install_packages(options = {})
|
7
|
+
remove_app_user
|
8
|
+
super(options)
|
9
|
+
run_as('root',"mv #{app_path}/jdownloader/* #{app_path}/")
|
10
|
+
directory(app_path, owner: @user)
|
11
|
+
directory(jdownloader_config_path, owner: @user)
|
12
|
+
end
|
13
|
+
|
14
|
+
def remove_app_user(options = {})
|
15
|
+
super(options) do |opts|
|
16
|
+
directory(app_path, action: :delete)
|
17
|
+
directory(jdownloader_config_path, action: :delete)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def configure_app_user(options = {})
|
22
|
+
self.install_packages(options)
|
23
|
+
|
24
|
+
super(options) do |opts|
|
25
|
+
write_template(template_path('org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json.erb'),
|
26
|
+
"#{app_path}/cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json",
|
27
|
+
opts.merge(server_name: get_global_config(:container_name)),
|
28
|
+
{owner: self.user})
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
protected
|
33
|
+
|
34
|
+
def jdownloader_config_path(path ="/")
|
35
|
+
File.join(home_folder_path(".config/jdownloader"), path)
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
name: Jdownloader
|
2
|
+
script_name: jdownloader.rb
|
3
|
+
version: 0.1
|
4
|
+
required_aethernal_agent_version: ">= 0.2.0"
|
5
|
+
description: JDownloader is a free, open-source download management tool. In order for your Jdownloader to be installed you first have to create an account on my.jdownloader.org with email and password and then use those credentials for the installation of Jdownloader.
|
6
|
+
installation_type: local_install
|
7
|
+
configuration_type: multi_user
|
8
|
+
icon:
|
9
|
+
name: jdownloader.png
|
10
|
+
sha256sum: 5e8be893fb1cca59fb07ba84d9991063434156d4600bae6261350ea3c12329da
|
11
|
+
plain_name: jdownloader
|
12
|
+
web_ui_url: http://my.jdownloader.org/
|
13
|
+
services:
|
14
|
+
- jdownloader
|
15
|
+
actions:
|
16
|
+
restart:
|
17
|
+
user:
|
18
|
+
required: true
|
19
|
+
linux_user: true
|
20
|
+
uninstall:
|
21
|
+
nothing: true
|
22
|
+
install_packages:
|
23
|
+
user:
|
24
|
+
required: true
|
25
|
+
linux_user: true
|
26
|
+
remove_app_user:
|
27
|
+
user:
|
28
|
+
required: true
|
29
|
+
linux_user: true
|
30
|
+
configure_app_user:
|
31
|
+
email:
|
32
|
+
required: true
|
33
|
+
password:
|
34
|
+
required: true
|
35
|
+
return_values:
|
36
|
+
- email
|
37
|
+
- password
|
38
|
+
display_values:
|
39
|
+
- email
|
40
|
+
- password
|
41
|
+
estimated_size_mb: 43
|
42
|
+
package:
|
43
|
+
folder_name: jdownloader
|
44
|
+
direct_download:
|
45
|
+
url: https://storage.googleapis.com/bysh-chef-files/jdownloader.zip
|
46
|
+
target_name: jdownloader.zip
|
47
|
+
auto_extract: true
|
48
|
+
always_latest: true
|
49
|
+
apt:
|
50
|
+
"1804":
|
51
|
+
packages:
|
52
|
+
- default-jre
|
53
|
+
- default-jdk
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aethernal-agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maran
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -268,6 +268,11 @@ files:
|
|
268
268
|
- lib/aethernal_agent/plugins/jackett/meta/jackett.png
|
269
269
|
- lib/aethernal_agent/plugins/jackett/templates/ServerConfig.json.erb
|
270
270
|
- lib/aethernal_agent/plugins/jackett/templates/jackett.apache.conf.erb
|
271
|
+
- lib/aethernal_agent/plugins/jdownloader/files/jdownloader.service
|
272
|
+
- lib/aethernal_agent/plugins/jdownloader/jdownloader.rb
|
273
|
+
- lib/aethernal_agent/plugins/jdownloader/manifest.yml
|
274
|
+
- lib/aethernal_agent/plugins/jdownloader/meta/jdownloader.png
|
275
|
+
- lib/aethernal_agent/plugins/jdownloader/templates/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json.erb
|
271
276
|
- lib/aethernal_agent/plugins/medusa/files/medusa.service
|
272
277
|
- lib/aethernal_agent/plugins/medusa/manifest.yml
|
273
278
|
- lib/aethernal_agent/plugins/medusa/medusa.rb
|