We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8916b14 commit b82425fCopy full SHA for b82425f
postinst.sh
@@ -28,7 +28,8 @@ apt update
28
apt install -y wireguard
29
30
#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
+#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
33
34
#fix permissions and ownership
35
chown -R bbuser:bbuser /home/bbuser
0 commit comments