Skip to content

Commit

Permalink
Fixing regression
Browse files Browse the repository at this point in the history
Existing folders were overwritten and this leads to false permissions
  • Loading branch information
Torxgewinde authored Sep 19, 2020
1 parent 8916b14 commit b82425f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ apt update
apt install -y wireguard

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

#fix permissions and ownership
chown -R bbuser:bbuser /home/bbuser
Expand Down

0 comments on commit b82425f

Please sign in to comment.