Compare commits
10 Commits
master.syn
...
master.syn
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f77b509e8 | |||
| 271768ca8e | |||
| bc2546c2fb | |||
| 669ab72e4d | |||
| 159a66133c | |||
| 37148348d7 | |||
| 773b8750da | |||
| 251d3915ae | |||
| adcb0f28eb | |||
| c398472a8b |
10
filewatcher.sh
Executable file → Normal file
10
filewatcher.sh
Executable file → Normal file
@@ -27,12 +27,12 @@ echo "Monitoring file $1 for changes - sending alerts to $2"
|
||||
while inotifywait -e modify -e attrib -e move -e delete $1 -o /opt/filewatcher/audit.log; do
|
||||
sleep 1
|
||||
|
||||
# changes="$(tail -n5 $1)"
|
||||
changes="$(tail -1 $1)"
|
||||
|
||||
changes="$(cat /opt/filewatcher/audit.log)"
|
||||
echo "The following change occurred in the file $1 : $changes" | mail -s "Change in $1" $2
|
||||
rm /opt/filewatcher/audit.log
|
||||
touch /opt/filewatcher/audit.log
|
||||
#changes="$(cat /opt/filewatcher/audit.log)"
|
||||
echo "The following change occurred in the file $1 : $changes" | mail -s "Change in $1" $2
|
||||
rm /opt/filewatcher/audit.log
|
||||
touch /opt/filewatcher/audit.log
|
||||
done
|
||||
else
|
||||
echo "Error: File $1 not found"
|
||||
|
||||
37
install-esxipower.sh
Executable file
37
install-esxipower.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wrapper script for install, for easier execution via URL.
|
||||
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/colors.inc)"
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/default.inc)"
|
||||
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}"
|
||||
else APTFUNC="${ATYPE}"
|
||||
fi
|
||||
echo ""
|
||||
echo -e "${idsCL[LightGreen]}ESXi-Power Installation Script${idsCL[Default]}"
|
||||
|
||||
do_with_root $APTFUNC -y install wget curl git
|
||||
|
||||
do_with_root set -eu
|
||||
do_with_root git clone https://git.schroedercity.com/voltron/esxi-power.git /opt/idssys/esxi-power
|
||||
do_with_root ln -s /opt/idssys/esxi-power/run.sh /usr/local/bin/esxipower
|
||||
|
||||
if [ ! -d "/opt/idssys/defaults" ]; then
|
||||
do_with_root set -eu
|
||||
do_with_root git clone https://git.schroedercity.com/voltron/iDS-Defaults.git /opt/idssys/defaults
|
||||
fi
|
||||
|
||||
if [ ! -d "/opt/idssys/settings" ]; then
|
||||
do_with_root mkdir /opt/idssys/settings
|
||||
fi
|
||||
echo -e "" > /opt/idssys/settings/esxi-power.conf
|
||||
|
||||
echo ""
|
||||
echo -e "${idsCL[Yellow]}ESXi-Power has been Installed${idsCL[Default]}"
|
||||
echo ""
|
||||
echo -e "To run ESXi-Power, use the command: ${idsCL[Green]}esxipower${idsCL[Default]}"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
exit 0
|
||||
4
install-filewatcher.sh
Executable file → Normal file
4
install-filewatcher.sh
Executable file → Normal file
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)"
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)"
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/iDS-Defaults/raw/branch/master/colors.inc)"
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/iDS-Defaults/raw/branch/master/default.inc)"
|
||||
|
||||
if type apt &>/dev/null; then
|
||||
ATYPE="apt"
|
||||
|
||||
4
install-linupx.sh
Executable file → Normal file
4
install-linupx.sh
Executable file → Normal file
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wrapper script for install, for easier execution via URL.
|
||||
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)"
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)"
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/colors.inc)"
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/default.inc)"
|
||||
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wrapper script for install, for easier execution via URL.
|
||||
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)"
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)"
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/colors.inc)"
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/default.inc)"
|
||||
|
||||
|
||||
echo ""
|
||||
|
||||
35
install-unifi-poller
Normal file
35
install-unifi-poller
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wrapper script for install, for easier execution via URL.
|
||||
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)"
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)"
|
||||
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}"
|
||||
else APTFUNC="${ATYPE}"
|
||||
fi
|
||||
echo ""
|
||||
echo -e "${idsCL[LightGreen]}UniFi-Poller Setup Script${idsCL[Default]}"
|
||||
|
||||
sudo echo "deb https://repos.influxdata.com/ubuntu bionic stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
|
||||
sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
|
||||
sudo apt -y update
|
||||
sudo apt install -y influxdb
|
||||
sudo systemctl start influxdb
|
||||
|
||||
influx -host localhost -port 8086 -execute "CREATE DATABASE unifi"
|
||||
influx -host localhost -port 8086 -execute "CREATE USER unifipoller WITH PASSWORD 'unifipoller' WITH ALL PRIVILEGES"
|
||||
influx -host localhost -port 8086 -execute "GRANT ALL ON unifi TO unifipoller"
|
||||
|
||||
curl -s https://golift.io/gpgkey | sudo apt-key add -
|
||||
sudo echo deb https://dl.bintray.com/golift/ubuntu bionic main | sudo tee /etc/apt/sources.list.d/unifi-pollers.list
|
||||
sudo apt update
|
||||
sudo apt install unifi-poller
|
||||
|
||||
|
||||
echo ""
|
||||
echo -e "${idsCL[Yellow]}UniFi-Poller has been Installed${idsCL[Default]}"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
exit 0
|
||||
3
list-colors.sh
Normal file → Executable file
3
list-colors.sh
Normal file → Executable file
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
clear
|
||||
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/colors.inc)"
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)"
|
||||
#source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)"
|
||||
|
||||
echo ""
|
||||
echo "--------------------------"
|
||||
|
||||
17
vcenter-ssl-update.sh
Executable file
17
vcenter-ssl-update.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wrapper script for install, for easier execution via URL.
|
||||
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)"
|
||||
source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)"
|
||||
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}"
|
||||
else APTFUNC="${ATYPE}"
|
||||
fi
|
||||
echo ""
|
||||
echo -e "${idsCL[LightGreen]}vCenter SSL Update Script${idsCL[Default]}"
|
||||
|
||||
/usr/lib/vmware-vmca/bin/certificate-managers
|
||||
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user