u
This commit is contained in:
		
							parent
							
								
									41d70fc8dd
								
							
						
					
					
						commit
						bd9bde9aac
					
				| @ -4,7 +4,7 @@ echo "Usage: this.sh [NewUser]" | |||||||
| echo "Example: this.sh alice" | 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 && sudo bash ~/debian-config.sh" | ||||||
| 
 | 
 | ||||||
| if [ v$1 != v ] | if [ "$1" ] | ||||||
| then | then | ||||||
|   NewUser=$1 |   NewUser=$1 | ||||||
| else | else | ||||||
| @ -18,7 +18,6 @@ echo | |||||||
| 
 | 
 | ||||||
| echo "=== Making dir /faronear/fon" | echo "=== Making dir /faronear/fon" | ||||||
| mkdir -p /faronear/fon | mkdir -p /faronear/fon | ||||||
| chmod 755 /faronear # 确保其他用户能够读取 /faronear/fon/nixhome/* |  | ||||||
| echo | echo | ||||||
| 
 | 
 | ||||||
| echo "=== Git cloning to /faronear/fon/sysconfig" | echo "=== Git cloning to /faronear/fon/sysconfig" | ||||||
| @ -26,6 +25,7 @@ git config --global credential.helper cache | |||||||
| if [ ! -d "/faronear/fon/sysconfig" ] | if [ ! -d "/faronear/fon/sysconfig" ] | ||||||
| then | then | ||||||
|   git clone https://git.faronear.org/fon/sysconfig /faronear/fon/sysconfig |   git clone https://git.faronear.org/fon/sysconfig /faronear/fon/sysconfig | ||||||
|  |   chmod -R 755 /faronear # 确保其他用户能够读取 /faronear/fon/sysconfig/nixhome/* | ||||||
| fi | fi | ||||||
| echo | echo | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -98,7 +98,7 @@ fi | |||||||
| # acme.sh settings | # acme.sh settings | ||||||
| if [ -f $HOME/.acme.sh/acme.sh.env ] | if [ -f $HOME/.acme.sh/acme.sh.env ] | ||||||
| then | then | ||||||
|   . "/root/.acme.sh/acme.sh.env" |   . "$HOME/.acme.sh/acme.sh.env" | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| # let MacOS uses the same variable so that vscode-sshfs can use "$USERPROFILE/.ssh/id_rsa" uniformly. | # let MacOS uses the same variable so that vscode-sshfs can use "$USERPROFILE/.ssh/id_rsa" uniformly. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user