u
This commit is contained in:
		
							parent
							
								
									6dff16aeba
								
							
						
					
					
						commit
						a63fa75667
					
				| @ -1,6 +1,5 @@ | |||||||
| echo '>>>> Starting gitea ...' | echo '>>>> Starting gitea ...' | ||||||
| cd /faronear/git/gitea | cd /faronear/git/gitea | ||||||
| # sudo it so that pm2 list shows it as root | pm2 start -x './gitea' --name gitea -- web | ||||||
| sudo pm2 start -x './gitea' --name gitea -- web |  | ||||||
| 
 | 
 | ||||||
| echo '>>>> Started gitea.' | echo '>>>> Started gitea.' | ||||||
|  | |||||||
| @ -44,13 +44,15 @@ then | |||||||
|   popd |   popd | ||||||
|   mkdir -p $HomePath/.ssh |   mkdir -p $HomePath/.ssh | ||||||
|   chmod 700 $HomePath/.ssh |   chmod 700 $HomePath/.ssh | ||||||
|   if [ -e $HomePath/.ssh/authorized_keys ] |   echo "--- Adding $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." | ||||||
|   then |   cat $SourcePath/authorized_keys >> $HomePath/.ssh/authorized_keys | ||||||
|     echo "--- Renaming $HomePath/.ssh/authorized_keys to authorized_keys.backup ..." |   # if [ -e $HomePath/.ssh/authorized_keys ] | ||||||
|     mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup |   # then | ||||||
|   fi |   #   echo "--- Renaming $HomePath/.ssh/authorized_keys to authorized_keys.backup ..." | ||||||
|   echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." |   #   mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup | ||||||
|   ln -s $SourcePath/authorized_keys $HomePath/.ssh/authorized_keys |   # fi | ||||||
|  |   # echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." | ||||||
|  |   # ln -s $SourcePath/authorized_keys $HomePath/.ssh/authorized_keys | ||||||
| else | else | ||||||
|   echo "!!! Not existing $SourcePath or $HomePath, please try again." |   echo "!!! Not existing $SourcePath or $HomePath, please try again." | ||||||
| fi | fi | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user