Skip to content

Commit ece45e3

Browse files
committed
Revert "Fix a bug with improperly used archive.extracted source value"
This reverts commit 48896b6 because with this commit, it is not possible to upgrade node.js to a newer version. The command aborts with this error message: cp: cannot create regular file '/usr/local/bin/node': Text file busy See 48896b6#commitcomment-18185563 for more information.
1 parent b139f1a commit ece45e3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

node/binary.sls

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
{% set checksum = node.get('checksum', 'f037e2734f52b9de63e6d4a4e80756477b843e6f106e0be05591a16b71ec2bd0') -%}
44
{% set pkgname = 'node-v' ~ version ~ '-linux-x64' -%}
55

6+
Get binary package:
7+
file.managed:
8+
- name: /usr/local/src/{{ pkgname }}.tar.gz
9+
- source: https://nodejs.org/dist/v{{ version }}/{{ pkgname }}.tar.gz
10+
- source_hash: sha256={{ checksum }}
11+
612
Extract binary package:
713
archive.extracted:
814
- name: /usr/local/src/
9-
- source: https://nodejs.org/dist/v{{ version }}/{{ pkgname }}.tar.gz
10-
- source_hash: sha256={{ checksum }}
15+
- source: /usr/local/src/{{ pkgname }}.tar.gz
1116
- archive_format: tar
1217
- if_missing: /usr/local/src/{{ pkgname }}
1318

0 commit comments

Comments
 (0)