Move scripts into folders and update links accordingly - set variable to do so.
This commit is contained in:
		
							parent
							
								
									cbce8081f5
								
							
						
					
					
						commit
						25da6903ab
					
				| @ -3,7 +3,8 @@ | ||||
| # Written by Josh Mudge | ||||
| # Ad Mejorem Dei Glorium | ||||
| 
 | ||||
| version=$(curl -s https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/VERSION | cat) | ||||
| DSSSOURCE=https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/dss/ | ||||
| version=$(curl -s $DSSSOURCE/VERSION | cat) | ||||
| 
 | ||||
| # Get options from CLI arguments | ||||
| 
 | ||||
| @ -148,7 +149,7 @@ then | ||||
|   # Update Linux and determined-setup | ||||
|   sudo apt-get update | ||||
|   sudo apt-get upgrade | ||||
|   curl -s "https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/setup.sh" | bash | ||||
|   curl -s "$DSSSOURCE/setup.sh" | bash | ||||
| 
 | ||||
| elif test $clean = 1 | ||||
| then | ||||
| @ -170,7 +171,7 @@ elif test $mon = 2 | ||||
| then | ||||
| 
 | ||||
|   dss init | ||||
|   curl -sO "https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/sysmon.sh" | ||||
|   curl -sO "$DSSSOURCE/sysmon.sh" | ||||
|   sudo mv sysmon.sh /home/.sysmon.sh | ||||
|  ( sudo crontab -l ; echo "14 1 * * * /bin/bash -c "/home/.sysmon.sh --email $email"" &> "$logfile" ) | sudo crontab - | ||||
| 
 | ||||
| @ -5,9 +5,10 @@ | ||||
| 
 | ||||
| # Only ban password login for root, not all login for root. | ||||
| 
 | ||||
| DSSSOURCE=https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/dss/ | ||||
| usr=$USER | ||||
| version="v1.4.4 Alpha" | ||||
| keyserver="https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/" | ||||
| version="v1.4.5 Alpha" | ||||
| keyserver="$DSSSOURCE" | ||||
| 
 | ||||
| while [[ $# -gt 0 ]] | ||||
| do | ||||
| @ -79,7 +80,7 @@ then | ||||
| 
 | ||||
|   cd .tssh | ||||
| 
 | ||||
|   curl -sLO https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/create-user.bash | ||||
|   curl -sLO $DSSSOURCE/create-user.bash | ||||
| 
 | ||||
|   curl -sLO https://$keyserver/$usr.pub | ||||
| 
 | ||||
| @ -3,6 +3,7 @@ | ||||
| # Written by Josh Mudge | ||||
| # Ad Mejorem Dei Glorium | ||||
| 
 | ||||
| DSSSOURCE=https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/dss/ | ||||
| update=1 | ||||
| version=v1.5.3a | ||||
| alpha=0 | ||||
| @ -60,7 +61,7 @@ then | ||||
|   sudo apt-get update | ||||
|   sudo apt-get upgrade | ||||
|   sudo apt-get install sysstat # Check if installed, then do this | ||||
|   curl -s "https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/setup.sh" | bash | ||||
|   curl -s "$DSSSOURCE/setup.sh" | bash | ||||
| 
 | ||||
| fi | ||||
| 
 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user