clone gitea via https
This commit is contained in:
		
							parent
							
								
									d2e2f919b6
								
							
						
					
					
						commit
						e58c63cccd
					
				
							
								
								
									
										12
									
								
								bootstrap.sh
								
								
								
								
							
							
						
						
									
										12
									
								
								bootstrap.sh
								
								
								
								
							| 
						 | 
					@ -11,6 +11,10 @@ BOOTSTRAP_DIR=~/sources/gitea_irisib/bootstrap
 | 
				
			||||||
CUSTOM_ZSHRC=$BOOTSTRAP_DIR/custom.zsh
 | 
					CUSTOM_ZSHRC=$BOOTSTRAP_DIR/custom.zsh
 | 
				
			||||||
CUSTOM_ENV=$BOOTSTRAP_DIR/env.sh
 | 
					CUSTOM_ENV=$BOOTSTRAP_DIR/env.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					GITEA_HTTPS="https://gitea.86thumbs.net"
 | 
				
			||||||
 | 
					GITEA_SSH="ssh://gitea@86thumbs.net:3022"
 | 
				
			||||||
 | 
					GITEA_CLONE=$GITEA_HTTPS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LOG=/dev/null
 | 
					LOG=/dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ -z $(groups | grep sudo) ]]; then
 | 
					if [[ -z $(groups | grep sudo) ]]; then
 | 
				
			||||||
| 
						 | 
					@ -22,9 +26,7 @@ fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function install_apt_dependencies () {
 | 
					function install_apt_dependencies () {
 | 
				
			||||||
	sudo apt-get update > /dev/null && echo "cache updated"
 | 
						sudo apt-get update > /dev/null && echo "cache updated"
 | 
				
			||||||
	for pgm in $DEPENDENCIES_APT; do
 | 
						sudo apt-get install -y $DEPENDENCIES_APT > /dev/null && echo "all installed!"
 | 
				
			||||||
		sudo apt-get install -y $pgm > /dev/null && echo "$pgm installed"
 | 
					 | 
				
			||||||
	done
 | 
					 | 
				
			||||||
	echo "--- ${FUNCNAME[0]} done"
 | 
						echo "--- ${FUNCNAME[0]} done"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,7 +62,7 @@ EOF
 | 
				
			||||||
function clone_bootstrap_to_sources_dir () {
 | 
					function clone_bootstrap_to_sources_dir () {
 | 
				
			||||||
	local dst=$BOOTSTRAP_DIR
 | 
						local dst=$BOOTSTRAP_DIR
 | 
				
			||||||
	if ! [[ -d  $dst ]]; then
 | 
						if ! [[ -d  $dst ]]; then
 | 
				
			||||||
		git clone ssh://gitea@86thumbs.net:3022/waldek/bootstrap.git $dst && echo "cloned bootstrap dir"
 | 
							git clone $GITEA_CLONE/waldek/bootstrap.git $dst && echo "cloned bootstrap dir"
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		cd $dst
 | 
							cd $dst
 | 
				
			||||||
		git pull && echo "updated $dst"
 | 
							git pull && echo "updated $dst"
 | 
				
			||||||
| 
						 | 
					@ -95,7 +97,7 @@ function customize_oh_my_zsh () {
 | 
				
			||||||
function clone_and_setup_vimrc () {
 | 
					function clone_and_setup_vimrc () {
 | 
				
			||||||
	local dst=$SOURCES_DIR/vimrc
 | 
						local dst=$SOURCES_DIR/vimrc
 | 
				
			||||||
	if ! [[ -d  $dst ]]; then
 | 
						if ! [[ -d  $dst ]]; then
 | 
				
			||||||
		git clone ssh://gitea@86thumbs.net:3022/waldek/vimrc.git $dst && echo "cloned bootstrap dir"
 | 
							git clone $GITEA_CLONE/waldek/vimrc.git $dst && echo "cloned bootstrap dir"
 | 
				
			||||||
	ln -s $dst/main.vimrc ~/.vimrc
 | 
						ln -s $dst/main.vimrc ~/.vimrc
 | 
				
			||||||
	git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
 | 
						git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
 | 
				
			||||||
	vim +VundleInstall +qall
 | 
						vim +VundleInstall +qall
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue