penguins-eggs 9.6.13 → 9.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,27 +22,33 @@ class ExportIso extends core_1.Command {
22
22
  const echo = utils_1.default.setEcho(flags.verbose);
23
23
  const rmount = `/tmp/eggs-${(Math.random() + 1).toString(36).slice(7)}`;
24
24
  let cmd = `rm -f ${rmount}\n`;
25
- const filter = '*.iso';
25
+ let filters = ['*.iso', '*.md5', '*.sha256'];
26
26
  cmd += `mkdir ${rmount}\n`;
27
27
  cmd += `sshfs ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso} ${rmount}\n`;
28
28
  if (flags.clean) {
29
29
  cmd += `rm -f ${rmount}/${Tu.snapshot_name}*\n`;
30
30
  }
31
- cmd += `cp ${Tu.snapshot_dir}${Tu.snapshot_name}${filter} ${rmount}\n`;
31
+ cmd += `cp ${Tu.snapshot_dir}${Tu.snapshot_name}${filters[0]} ${rmount}\n`;
32
+ if (flags.checksum) {
33
+ cmd += `cp ${Tu.snapshot_dir}${Tu.snapshot_name}${filters[1]} ${rmount}\n`;
34
+ cmd += `cp ${Tu.snapshot_dir}${Tu.snapshot_name}${filters[2]} ${rmount}\n`;
35
+ }
32
36
  cmd += 'sync\n';
33
37
  cmd += `umount ${rmount}\n`;
34
38
  cmd += `rm -f ${rmount}\m`;
35
39
  if (!flags.verbose) {
36
40
  if (flags.clean) {
37
- console.log(`remove: ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso}${Tu.snapshot_name}${filter}`);
41
+ console.log(`remove ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso}${Tu.snapshot_name}${filters[0]}`);
42
+ console.log(`export ${Tu.config.localPathIso}/${Tu.snapshot_name}${filters[1]}/${filters[2]} to ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso}`);
38
43
  }
39
- console.log(`copy: ${Tu.config.localPathIso}/${Tu.snapshot_name}${filter} to ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso}`);
44
+ console.log(`scp ${Tu.config.localPathIso}/${Tu.snapshot_name}${filters[0]} ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso}`);
40
45
  }
41
46
  await (0, utils_2.exec)(cmd, echo);
42
47
  }
43
48
  }
44
49
  ExportIso.flags = {
45
50
  clean: core_1.Flags.boolean({ char: 'c', description: 'delete old ISOs before to copy' }),
51
+ checksum: core_1.Flags.boolean({ char: 'C', description: 'export checksums md5 and sha256' }),
46
52
  help: core_1.Flags.help({ char: 'h' }),
47
53
  verbose: core_1.Flags.boolean({ char: 'v', description: 'verbose' }),
48
54
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "penguins-eggs",
3
3
  "description": "Perri's Brewery edition: remaster your system and distribuite it",
4
- "version": "9.6.13",
4
+ "version": "9.6.15",
5
5
  "author": "Piero Proietti @pieroproietti",
6
6
  "bin": {
7
7
  "eggs": "bin/run"
package/scripts/_eggs CHANGED
@@ -58,6 +58,7 @@ calamares)
58
58
  "--help[Show CLI help.]"
59
59
  "--install[install calamares and its dependencies]"
60
60
  "--nointeractive[no user interaction]"
61
+ "--policies[configure calamares policies]"
61
62
  "--release[release: remove calamares and all its dependencies after the installation]"
62
63
  "--remove[remove calamares and its dependencies]"
63
64
  "--theme=-[theme/branding for eggs and calamares]:"
@@ -102,6 +103,7 @@ export:deb)
102
103
  export:iso)
103
104
  _command_flags=(
104
105
  "--clean[delete old ISOs before to copy]"
106
+ "--checksum[export checksums md5 and sha256]"
105
107
  "--help[Show CLI help.]"
106
108
  "--verbose[verbose]"
107
109
  )
package/scripts/eggs.bash CHANGED
@@ -13,12 +13,12 @@ _eggs_autocomplete()
13
13
  local commands="
14
14
  adapt --help --verbose
15
15
  analyze --help --verbose
16
- calamares --help --install --nointeractive --release --remove --theme --verbose
16
+ calamares --help --install --nointeractive --policies --release --remove --theme --verbose
17
17
  config --clean --help --nointeractive --noicons --verbose
18
18
  cuckoo --help
19
19
  dad --clean --default --help --verbose
20
20
  export:deb --all --clean --help --verbose
21
- export:iso --clean --help --verbose
21
+ export:iso --clean --checksum --help --verbose
22
22
  install --crypted --custom --domain --halt --help --ip --nointeractive --none --pve --random --small --suspend --unattended --verbose
23
23
  kill --help --nointeractive --verbose
24
24
  mom --help
@@ -1,4 +0,0 @@
1
- # eggs manual
2
-
3
- * eggs.1 manual man format compressed
4
- * eggs.1.html manual html format
Binary file