Fix bugs
This commit is contained in:
parent
ad12222ed1
commit
56bf94731a
15
install.sh
15
install.sh
|
@ -98,10 +98,9 @@ mountPart() {
|
||||||
}
|
}
|
||||||
|
|
||||||
installPackage() {
|
installPackage() {
|
||||||
# whiptail --msgbox "Installing '$1'." 0 0
|
|
||||||
case ${2} in
|
case ${2} in
|
||||||
Y)
|
Y)
|
||||||
if [ ! -z $username ]; then
|
if [ -z $username ]; then
|
||||||
whiptail --msgbox "Important packages cannot be installed with paru." 0 0
|
whiptail --msgbox "Important packages cannot be installed with paru." 0 0
|
||||||
logStep "${3}"
|
logStep "${3}"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -126,14 +125,14 @@ getThePackages() {
|
||||||
fi
|
fi
|
||||||
commOutput=$(runInChroot "command -v paru &> /dev/null || echo 1")
|
commOutput=$(runInChroot "command -v paru &> /dev/null || echo 1")
|
||||||
if [ "$commOutput" = "1" ] && [ "${1}" = "N" ]; then
|
if [ "$commOutput" = "1" ] && [ "${1}" = "N" ]; then
|
||||||
if [ ! -z $username ]; then
|
if [ -z $username ]; then
|
||||||
username=$(whiptail --inputbox "Enter the username of the newly created user." 0 0 3>&1 1>&2 2>&3)
|
username=$(whiptail --inputbox "Enter the username of the newly created user." 0 0 3>&1 1>&2 2>&3)
|
||||||
fi
|
fi
|
||||||
# runInChroot "sed -i 's/%wheel ALL=(ALL) ALL/# %wheel ALL=(ALL) ALL/' -e 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL' /etc/sudoers"
|
# runInChroot "sed -i 's/%wheel ALL=(ALL) ALL/# %wheel ALL=(ALL) ALL/' -e 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers"
|
||||||
runInChroot "sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL' /etc/sudoers"
|
runInChroot "sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers"
|
||||||
runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru.git; cd paru; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf paru"
|
runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru-bin.git; cd paru; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf paru"
|
||||||
runInChroot "sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL' /etc/sudoers"
|
runInChroot "sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers"
|
||||||
# runInChroot "sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL' -e 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers"
|
# runInChroot "sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' -e 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers"
|
||||||
fi
|
fi
|
||||||
local IFS=,
|
local IFS=,
|
||||||
while read -r NAME IMPORTANT AUR; do
|
while read -r NAME IMPORTANT AUR; do
|
||||||
|
|
Loading…
Reference in New Issue