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
|
# Written by Josh Mudge
|
||||||
# Ad Mejorem Dei Glorium
|
# 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
|
# Get options from CLI arguments
|
||||||
|
|
||||||
|
@ -148,7 +149,7 @@ then
|
||||||
# Update Linux and determined-setup
|
# Update Linux and determined-setup
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get upgrade
|
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
|
elif test $clean = 1
|
||||||
then
|
then
|
||||||
|
@ -170,7 +171,7 @@ elif test $mon = 2
|
||||||
then
|
then
|
||||||
|
|
||||||
dss init
|
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 mv sysmon.sh /home/.sysmon.sh
|
||||||
( sudo crontab -l ; echo "14 1 * * * /bin/bash -c "/home/.sysmon.sh --email $email"" &> "$logfile" ) | sudo crontab -
|
( 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.
|
# 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
|
usr=$USER
|
||||||
version="v1.4.4 Alpha"
|
version="v1.4.5 Alpha"
|
||||||
keyserver="https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/"
|
keyserver="$DSSSOURCE"
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]
|
while [[ $# -gt 0 ]]
|
||||||
do
|
do
|
||||||
|
@ -79,7 +80,7 @@ then
|
||||||
|
|
||||||
cd .tssh
|
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
|
curl -sLO https://$keyserver/$usr.pub
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# Written by Josh Mudge
|
# Written by Josh Mudge
|
||||||
# Ad Mejorem Dei Glorium
|
# Ad Mejorem Dei Glorium
|
||||||
|
|
||||||
|
DSSSOURCE=https://git.coolaj86.com/josh/proxmox-scripts/raw/branch/main/dss/
|
||||||
update=1
|
update=1
|
||||||
version=v1.5.3a
|
version=v1.5.3a
|
||||||
alpha=0
|
alpha=0
|
||||||
|
@ -60,7 +61,7 @@ then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get upgrade
|
sudo apt-get upgrade
|
||||||
sudo apt-get install sysstat # Check if installed, then do this
|
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
|
fi
|
||||||
|
|
Loading…
Reference in New Issue