This commit is contained in:
luk.lu
2022-12-05 16:38:05 +08:00
parent f8f09294c1
commit 20aae37be5
12 changed files with 52 additions and 33 deletions

View File

@@ -2,7 +2,7 @@
echo "Usage: this.sh [NewUser]"
echo "Example: this.sh alice"
echo "curl https://git.faronear.org/fon/sysconfig/raw/branch/main/debian-config.sh > ~/debian-config.sh && sudo bash ~/debian-config.sh"
echo "curl https://git.faronear.org/fon/sysconfig/raw/branch/main/debian-config.sh > ~/debian-config.sh && bash ~/debian-config.sh"
if [ "$1" ]
then
@@ -95,8 +95,12 @@ then
fi
echo
echo "=== Add a new user [$NewUser]"
source /faronear/fon/sysconfig/debian-add-user.sh $NewUser
echo "=== Add a new user [$NewUser]? <y> for yes, <anything else> for no change:"
read -p ">>> " AddNewUser
if [ "$AddNewUser" == 'y' ]
then
source /faronear/fon/sysconfig/debian-add-user.sh $NewUser
fi
echo
echo "=== Enable xfce autologin [/etc/lightdm/lightdm.conf]: <y> for autologin as [$NewUser] or <anything else> for no change:"