1
0
forked from ScoDoc/ScoDoc
ScoDoc/tools/debian/preinst

26 lines
516 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 18:55:58 +02:00
# Version majeure de Debian (..., 9, 10, 11)
2021-08-24 16:18:00 +02:00
2021-08-24 18:55:58 +02:00
if [ -e /etc/debian_version ]
then
debian_version=$(cat /etc/debian_version)
debian_version=${debian_version%%.*}
echo "Detected Debian version: ${debian_version}"
else
echo "can't detect Debian version"
2021-08-24 17:35:39 +02:00
fi
2021-08-24 18:55:58 +02:00
#
echo arch="$(arch)"
# if [ "$(arch)" != "x86_64" ]
# then
# echo
# echo "Version du systeme Linux Debian incompatible (pas X86 64 bits)"
# echo
# exit 1
# fi