mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-24 03:53:29 +01:00
Linux: Fix compatibility of generic installers with old Linux distros
In old Linux distributions, tar command doesn't support "--keep-directory-symlink" so we now dynamically detect if this switch is support and then we use it if it is available
This commit is contained in:
parent
4cc203e7b3
commit
440df02355
@ -284,7 +284,7 @@ package: prepare
|
||||
@echo "VERSION=$(TC_VERSION)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_TYPE=tar" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_NAME=$(PACKAGE_NAME)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_START=1107" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_START=1111" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "INSTALLER_TYPE=$(INSTALLER_TYPE)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
|
||||
@cat $(BASE_DIR)/Setup/Linux/veracrypt_install_template.sh >> $(INTERNAL_INSTALLER_NAME)
|
||||
|
@ -32,7 +32,11 @@ KTERM=0
|
||||
case $PACKAGE_TYPE in
|
||||
tar)
|
||||
PACKAGE_INSTALLER=tar
|
||||
PACKAGE_INSTALLER_OPTS='-C / --keep-directory-symlink --no-overwrite-dir -xpzvf'
|
||||
if tar --help | grep -q -- '--keep-directory-symlink'; then
|
||||
PACKAGE_INSTALLER_OPTS='-C / --keep-directory-symlink --no-overwrite-dir -xpzvf'
|
||||
else
|
||||
PACKAGE_INSTALLER_OPTS='-C / --no-overwrite-dir -xpzvf'
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user