password for regular user

This commit is contained in:
2014-12-21 11:41:49 -05:00
parent 079ff52d6c
commit cc29913f6d
6 changed files with 25 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ function will_it_blend () {
if [[ "${I_AM_A_RACECAR}" == "y" ]];
then
RACECAR_CHK='nice -n "-19" '
RACECAR_CHK='nice -n -19 '
else
RACECAR_CHK=""
fi

View File

@@ -4,7 +4,7 @@ function stuffy {
if [[ "${I_AM_A_RACECAR}" == "y" ]];
then
RACECAR_CHK='nice -n "-19" '
RACECAR_CHK='nice -n -19 '
else
RACECAR_CHK=""
fi

View File

@@ -12,7 +12,7 @@ function yo_dj () {
if [[ "${I_AM_A_RACECAR}" == "y" ]];
then
RACECAR_CHK='nice -n "-19" '
RACECAR_CHK='nice -n -19 '
else
RACECAR_CHK=""
fi

View File

@@ -14,7 +14,7 @@ function mentos {
if [[ "${I_AM_A_RACECAR}" == "y" ]];
then
RACECAR_CHK='nice -n "-19" '
RACECAR_CHK='nice -n -19 '
else
RACECAR_CHK=""
fi

View File

@@ -196,6 +196,7 @@ EOF
set +e
${CHROOTCMD} ${i}/ bash -c "yaourt -S --needed --noconfirm linux" >> "${LOGFILE}.${FUNCNAME}" 2>&1
set -e
#${CHROOTCMD} ${i}/ bash -c "yaourt -S --needed --noconfirm debian-whois-mkpasswd" >> "${LOGFILE}.${FUNCNAME}" 2>&1
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
echo -n "Regular packages..."
set +e
@@ -208,6 +209,10 @@ EOF
${CHROOTCMD} ${i}/ passwd -d ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
mkdir -p ${i}/etc/sudoers.d ; chmod 750 ${i}/etc/sudoers.d
echo "${REGUSR} ALL=(ALL) ALL" >> ${i}/etc/sudoers.d/${REGUSR}
if [ -n "${REGUSR_PASS}" ];
then
${CHROOTCMD} ${i}/ echo "${REGUSR}:${REGUSR_PASS}" | chpasswd -e
fi
echo "Done."
done