u
This commit is contained in:
		
							parent
							
								
									548b97005b
								
							
						
					
					
						commit
						037bc6ed34
					
				| @ -6,7 +6,7 @@ then | |||||||
| else | else | ||||||
|   echo "Configure private home settings" |   echo "Configure private home settings" | ||||||
|   echo "Usage: setup.sh [Config-Source-Path] [User-Home-Path] [--AdotMode]" |   echo "Usage: setup.sh [Config-Source-Path] [User-Home-Path] [--AdotMode]" | ||||||
|   read -p "Enter config source path (leave blank for [/Users/luk.lu]/faronear/fon/sysconfig/nixhome) >> " SourcePath |   read -p ">> Enter config source path (leave blank for [/Users/luk.lu]/faronear/fon/sysconfig/nixhome) >> " SourcePath | ||||||
|   if [ ! $SourcePath ] |   if [ ! $SourcePath ] | ||||||
|   then |   then | ||||||
|     echo "Use default source path: [Users/luk.lu]/faronear/fon/sysconfig/nixhome" |     echo "Use default source path: [Users/luk.lu]/faronear/fon/sysconfig/nixhome" | ||||||
| @ -35,7 +35,7 @@ if [ -d $SourcePath ] && [ -d $HomePath ] | |||||||
| then | then | ||||||
|   pushd $HomePath |   pushd $HomePath | ||||||
|   homescriptlist=".emacs .emacs.lisp .bashrc .bash_profile .gitignore" |   homescriptlist=".emacs .emacs.lisp .bashrc .bash_profile .gitignore" | ||||||
|   read -p "Copy or link scripts? l for link, anything else for copy >> " CopyOrLinkScripts |   read -p ">> Copy or link scripts? l for link, anything else for copy >> " CopyOrLinkScripts | ||||||
|   for homescript in $homescriptlist |   for homescript in $homescriptlist | ||||||
|   do |   do | ||||||
|     rm -fr $homescript.backup |     rm -fr $homescript.backup | ||||||
| @ -49,7 +49,7 @@ then | |||||||
|       cp -r $SourcePath/$homescript $HomePath |       cp -r $SourcePath/$homescript $HomePath | ||||||
|     fi |     fi | ||||||
|   done |   done | ||||||
|   read -p "Append or link or omit [.ssh/authorized_keys]? a for append, l for link, anything else for omit >> " CopyOrLinkOrOmitAuthorizedKeys |   read -p ">> Append or link or omit [.ssh/authorized_keys]? a for append, l for link, anything else for omit >> " CopyOrLinkOrOmitAuthorizedKeys | ||||||
|   if [ $CopyOrLinkOrOmitAuthorizedKeys = 'l' ] |   if [ $CopyOrLinkOrOmitAuthorizedKeys = 'l' ] | ||||||
|   then |   then | ||||||
|     echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." |     echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user