Ensure that the admin user can initially sudo
This commit is contained in:
parent
4d3371694a
commit
14e95ca957
|
@ -149,7 +149,7 @@ To complete the installation run the following:
|
||||||
sudo su
|
sudo su
|
||||||
freedombone menuconfig
|
freedombone menuconfig
|
||||||
|
|
||||||
' > $rootdir/etc/init.d/motd
|
' > $rootdir/etc/motd
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_ssh() {
|
configure_ssh() {
|
||||||
|
@ -168,6 +168,10 @@ configure_ssh() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
admin_user_sudo() {
|
||||||
|
echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers
|
||||||
|
}
|
||||||
|
|
||||||
continue_installation() {
|
continue_installation() {
|
||||||
# If a configuration file exists then run with it
|
# If a configuration file exists then run with it
|
||||||
# otherwise the interactive installer can be used
|
# otherwise the interactive installer can be used
|
||||||
|
@ -279,6 +283,7 @@ chroot "$rootdir" apt-get update
|
||||||
|
|
||||||
configure_ssh
|
configure_ssh
|
||||||
configure_networking
|
configure_networking
|
||||||
|
admin_user_sudo
|
||||||
continue_installation
|
continue_installation
|
||||||
|
|
||||||
cd /
|
cd /
|
||||||
|
|
Loading…
Reference in New Issue