This commit is contained in:
陆柯 2022-11-19 08:26:59 +08:00
parent 41d70fc8dd
commit bd9bde9aac
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,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"
if [ v$1 != v ]
if [ "$1" ]
then
NewUser=$1
else
@ -18,7 +18,6 @@ echo
echo "=== Making dir /faronear/fon"
mkdir -p /faronear/fon
chmod 755 /faronear # 确保其他用户能够读取 /faronear/fon/nixhome/*
echo
echo "=== Git cloning to /faronear/fon/sysconfig"
@ -26,6 +25,7 @@ git config --global credential.helper cache
if [ ! -d "/faronear/fon/sysconfig" ]
then
git clone https://git.faronear.org/fon/sysconfig /faronear/fon/sysconfig
chmod -R 755 /faronear # 确保其他用户能够读取 /faronear/fon/sysconfig/nixhome/*
fi
echo

View File

@ -98,7 +98,7 @@ fi
# acme.sh settings
if [ -f $HOME/.acme.sh/acme.sh.env ]
then
. "/root/.acme.sh/acme.sh.env"
. "$HOME/.acme.sh/acme.sh.env"
fi
# let MacOS uses the same variable so that vscode-sshfs can use "$USERPROFILE/.ssh/id_rsa" uniformly.