@dotpi/tools 2.11.4 → 2.11.5

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.
package/README.md CHANGED
@@ -30,4 +30,3 @@ Please do report them.
30
30
  Cf. <https://flaterco.com/kb/audio/pipewire/volume.html>
31
31
  - [ ] easy effect
32
32
  Cf. <https://github.com/wwmm/easyeffects/wiki/Command-Line-Options>
33
-
@@ -308,8 +308,7 @@ if [ -d "$source_path" ] && [ -r "$source_path" ] ; then
308
308
  (set -o pipefail ; \
309
309
  cd -- "$source_path" && tar c "${tar_options[@]}" -- *.nmconnection* \
310
310
  | tar x -C "$destination_path") || {
311
- dotpi_echo_error "No network connection found in ${source_path}"
312
- exit 1
311
+ dotpi_echo_warning "No network connection found in ${source_path}"
313
312
  }
314
313
  fi
315
314
 
@@ -319,7 +318,7 @@ if ! $(wpa_passphrase test 12345678 > /dev/null 2>&1) ; then
319
318
  dotpi_echo_warning "Network password won't be salted, 'wpa_passphrase' is needed to salt passwords."
320
319
  else
321
320
 
322
- for file in "${destination_path}"/*.nmconnection ; do
321
+ while IFS= read -r -d '' file ; do
323
322
  key='wifi-security.psk'
324
323
  psk="$(dotpi_connection_read --file "$file" --key "$key")"
325
324
 
@@ -332,7 +331,8 @@ else
332
331
  dotpi_connection_write --file "$file" --key "$key" --value "$passphrase"
333
332
  fi
334
333
 
335
- done
334
+ # do not salt templates, as ssid and psk may depend on variables
335
+ done < <(find "${destination_path}" -name '*.nmconnection' -print0)
336
336
  fi
337
337
 
338
338
 
@@ -11,6 +11,5 @@
11
11
  "@dotpi/javascript": "^1.6.3",
12
12
  "execa": "^9.5.2",
13
13
  "globby": "^14.0.2"
14
- },
15
- "gitHead": "9356e1fd0c1c5f76a16243e2ac40c0951af64779"
14
+ }
16
15
  }
@@ -13,6 +13,5 @@
13
13
  "@dotpi/javascript": "^1.6.3",
14
14
  "@dotpi/module": "^1.10.1",
15
15
  "commander": "^12.1.0"
16
- },
17
- "gitHead": "9356e1fd0c1c5f76a16243e2ac40c0951af64779"
16
+ }
18
17
  }
@@ -4,4 +4,4 @@
4
4
 
5
5
  @audio - rtprio 95
6
6
  @audio - memlock unlimited
7
- # @audio - nice -19
7
+ @audio - nice -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotpi/tools",
3
- "version": "2.11.4",
3
+ "version": "2.11.5",
4
4
  "description": "Set of scripts for managing dotpi fleets of Raspberry Pi",
5
5
  "author": "Jean-Philippe Lambert",
6
6
  "contributors": [
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "lerna": "^8.2.4"
48
48
  },
49
- "gitHead": "9356e1fd0c1c5f76a16243e2ac40c0951af64779"
49
+ "gitHead": "6861c092464092495b95248b677943961eec5ebc"
50
50
  }
@@ -1,28 +0,0 @@
1
- Copyright (c) 2023-present IRCAM – Centre Pompidou (France, Paris)
2
-
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without modification,
6
- are permitted provided that the following conditions are met:
7
-
8
- * Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- * Redistributions in binary form must reproduce the above copyright notice, this
12
- list of conditions and the following disclaimer in the documentation and/or
13
- other materials provided with the distribution.
14
-
15
- * Neither the name of the IRCAM nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
23
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
26
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,28 +0,0 @@
1
- Copyright (c) 2023-present IRCAM – Centre Pompidou (France, Paris)
2
-
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without modification,
6
- are permitted provided that the following conditions are met:
7
-
8
- * Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- * Redistributions in binary form must reproduce the above copyright notice, this
12
- list of conditions and the following disclaimer in the documentation and/or
13
- other materials provided with the distribution.
14
-
15
- * Neither the name of the IRCAM nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
23
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
26
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.