Testing
This commit is contained in:
		
							parent
							
								
									ba8804ead0
								
							
						
					
					
						commit
						2c6860da87
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -1,4 +1,6 @@ | |||
| post_install() { | ||||
|     echo "installing repo" | ||||
| 
 | ||||
|     # Initiate the stow repo | ||||
|     git clone --depth 1 --progress https://git.depeuter.tk/tdpeuter/arch-pkgs /usr/share/tdpeuter/arch-pkgs | ||||
|     | ||||
|  | @ -7,14 +9,21 @@ post_install() { | |||
| } | ||||
| 
 | ||||
| post_upgrade() { | ||||
|     echo "moving directories" | ||||
|     cd /usr/share/tdpeuter/arch-pkgs/  | ||||
| 
 | ||||
|     echo "pulling repo" | ||||
|     sleep 2 | ||||
|     git pull | ||||
| 
 | ||||
|     user=$(who | cut -f1 -d' ') | ||||
|     packages=$(ls ./stow) | ||||
|      | ||||
|     echo "stowing packages" | ||||
|     stow -d ./stow -t "/home/${user}" ${packages} | ||||
| } | ||||
| 
 | ||||
| pre_remove() { | ||||
|     rm -rf /usr/share/tdpeuter/arch-pkgs | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue