deblan-report/hooks/on-start

26 lines
602 B
Plaintext
Raw Normal View History

2019-06-12 11:32:52 +02:00
#!/bin/sh
ulimit -s 65536
2019-06-12 11:32:52 +02:00
if ! apt-get update >/dev/null 2>/dev/null; then
printf "La mise à jour de la liste des paquets à échoué.\n"
fi
if ! which envsubst 2>/dev/null >/dev/null; then
printf "Le programme \`envsubst\` est nécessaire. Installer \`gettext-base\`.\n"
exit 1
fi
2019-06-12 12:32:03 +02:00
if ! which base64 2>/dev/null >/dev/null; then
2019-06-12 13:12:57 +02:00
printf "Le programme \`base64\` est nécessaire. Installer \`coreutils\`.\n"
2019-06-12 12:32:03 +02:00
exit 1
fi
2019-06-12 13:45:12 +02:00
if test -n "$SMART_DEVICES" && ! which smartctl 2>/dev/null >/dev/null; then
printf "Le programme \`smartctl\` est nécessaire. Installer \`smartmontools\`.\n"
2019-06-12 12:32:03 +02:00
exit 1
fi