Skip to content

Commit b82425f

Browse files
authored
Fixing regression
Existing folders were overwritten and this leads to false permissions
1 parent 8916b14 commit b82425f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postinst.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ apt update
2828
apt install -y wireguard
2929

3030
#extract the tarball to the root directory, all extracted files will be owned by root:root
31-
tar --directory=/ --strip-components=1 --no-same-owner --owner=root --group=root -xzf /tmp/files.tgz
31+
#directories that already exist will not be overwritten
32+
tar --directory=/ --strip-components=1 --no-same-owner --owner=root --group=root --no-overwrite-dir --preserve-permissions --extract --gzip --file /tmp/files.tgz
3233

3334
#fix permissions and ownership
3435
chown -R bbuser:bbuser /home/bbuser

0 commit comments

Comments
 (0)