DocScoDoc/tools/debian/preinst

20 lines
421 B
Plaintext
Raw Normal View History

2021-08-24 16:18:00 +02:00
#!/bin/bash
# Pre-installation de scodoc
# ------------ Safety checks
2021-08-24 17:35:39 +02:00
# Version majeure de Debian (..., 9, 10)
debian_version=$(cat /etc/debian_version)
debian_version=${debian_version%%.*}
2021-08-24 16:18:00 +02:00
if [ "${debian_version}" != "11" ]
then
echo "Version du systeme Linux Debian incompatible"
exit 1
fi
if [ "$(arch)" != "x86_64" ]
then
echo "Version du systeme Linux Debian incompatible (pas X86 64 bits)"
exit 1
2021-08-24 17:35:39 +02:00
fi