diff --git a/CHANGELOG.md b/CHANGELOG.md index 23d95ba..8ce917a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Forward root's mails to new user email address. * Ensure to disable dangerous modules (firewire, thunderbolt, …). * Add the possibility to set the GRUB_TIMEOUT +* Exit if no informations file is available. ### 0.3.0 diff --git a/post_install_sid.sh b/post_install_sid.sh index a9b4d11..4c2dd35 100755 --- a/post_install_sid.sh +++ b/post_install_sid.sh @@ -175,7 +175,14 @@ OPTIONS="" grub_timeout='5' # Load additionnal informations (new_username, new_user_mail, …) and override some variables -. ${script_path}/informations +if [ -f ${script_path}/informations ]; then + . ${script_path}/informations +else + printf '%b' "You should define a ${script_path}/informations file\n" + printf '%b' "Or simply copy the template:\n" + printf '%b' "cp ${script_path}/Informations.template ${script_path}/informations\n" + exit 1 +fi # Fin des variables globales # -----------------------------------------------------------