450,8 → 450,9 |
LC_ALL=C /usr/bin/grub2-mkpasswd-pbkdf2 | \ |
grep -v '[eE]nter password:' | \ |
sed -e "s/PBKDF2 hash of your password is //"` |
echo "GRUB2_PASSWORD=$pbkdf2" > /boot/grub2/user.cfg |
chmod 0600 /boot/grub2/user.cfg |
[ -e /etc/grub.d/default-40_custom ] || cp /etc/grub.d/40_custom /etc/grub.d/default-40_custom |
echo "set superusers=\"root\"" >> /etc/grub.d/40_custom |
echo "password_pbkdf2 root $pbkdf2" >> /etc/grub.d/40_custom |
echo "# Login name and password to protect GRUB2 boot menu (!!!qwerty keyboard) : " > $PASSWD_FILE |
echo "GRUB2_user=root" >> $PASSWD_FILE |
echo "GRUB2_password=$grub2pwd" >> $PASSWD_FILE |
477,7 → 478,7 |
# copy conf files in /usr/local/etc |
cp -f $DIR_CONF/etc/alcasar* $DIR_DEST_ETC/. ; chown -R root:apache $DIR_DEST_ETC ; chmod 770 $DIR_DEST_ETC ; chmod 660 $DIR_DEST_ETC/alcasar* |
$SED "s?^DB_RADIUS=.*?DB_RADIUS=\"$DB_RADIUS\"?g" $DIR_DEST_BIN/alcasar-mysql.sh |
# generate central conf file |
# generate main conf file |
cat <<EOF > $CONF_FILE |
########################################## |
## ## |
2201,7 → 2202,7 |
[ -e /etc/security/limits.conf.default ] || cp /etc/security/limits.conf /etc/security/limits.conf.default |
$SED "/^# End of file.*/i*\tsoft\tcore\t0\n*\thard\tcore\t0" /etc/security/limits.conf |
# GRUB2 modifications (Wait time : 3s - ALCASAR entry - VGA=791 - Change the default banner |
[ -e /etc/default/grub.default ] || cp /etc/default/grub /etc/default/grub.default |
[ -e /etc/default/grub.default ] || cp /etc/default/grub /etc/default/grub.default |
$SED "s?^GRUB_TIMEOUT=.*?GRUB_TIMEOUT=3?g" /etc/default/grub |
$SED "s?^GRUB_DISTRIBUTOR=.*?GRUB_DISTRIBUTOR=ALCASAR?g" /etc/default/grub |
[ -e /etc/mageia-release.default ] || cp /etc/mageia-release /etc/mageia-release.default |