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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74baa32065150a5dfe178e860adc4aa26272866ec936e467d004e5c2e23b7803
4
- data.tar.gz: 35b520d49d1345cb500b1bb283e0f5626fd2a07e773bafe19d17e2ec731cc673
3
+ metadata.gz: 6e35a58db28ece4a11621fb3e4ad4b75a0d23879d589e4b8a8203a353f14f491
4
+ data.tar.gz: 2b01f0a0d161ab5ebcb55d26f251ce13ba20557e8b7eedb45c45f5b4c91a1633
5
5
  SHA512:
6
- metadata.gz: aefbdbcebc94476405140552f4930a18b68beb2465eede62ff90959fe896fd33d7ae80dc5892b596811c24dc682a6988f3f19c3e6d61e700f9d85157187d1a5f
7
- data.tar.gz: e8aec83e85f96aca92c340c1d1578f911af9e7bc47b4e8643233127ef6e068206bad3599479ce7d747445ddf689fb61403a839ea2382392535c7f61ab1d8554d
6
+ metadata.gz: '0594005e2d34724bb37ee4bfcb03cf3c49ada03d4909aa403305ac60f8129ed4194f0b5f7b4c0cfc18afc59a9e47d79e100b434e921539337735e9487557e066'
7
+ data.tar.gz: b5b3adc1f2cac8ba656b4f73fe2fc727c754eeb5296211434e59f034b89ab8e9398d5e2dd0a1a698ef87f4b7fdeded7bf6430401ceff9c801d9842320151bc2e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aethernal-agent (0.4.1)
4
+ aethernal-agent (0.4.2)
5
5
  activesupport
6
6
  bcrypt
7
7
  docker-api (~> 1.34.2)
@@ -19,7 +19,7 @@ module AethernalAgent
19
19
  'Env' => self.env,
20
20
  'HostConfig' =>
21
21
  {
22
- 'RestartPolicy' => {'Name' => 'on-failure'},
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
@@ -0,0 +1,5 @@
1
+ {
2
+ "email" : "<%= @email %>",
3
+ "password" : "<%= @password %>",
4
+ "devicename" : "<%= @user %>@<%= @server_name %>"
5
+ }
@@ -1,3 +1,3 @@
1
1
  module AethernalAgent
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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.1
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-01 00:00:00.000000000 Z
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