Parcourir la source

'grundinstallation.sh' ändern

Daniel Wenzel il y a 3 ans
Parent
commit
0c577edeb8
1 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. 7 4
      grundinstallation.sh

+ 7 - 4
grundinstallation.sh

@@ -42,6 +42,13 @@ EOF
 if [ $Raspberry ]; then
 	echo "extend .1.3.6.1.4.1.2021.8.4 cpu_temp /scripts/snmp_temp/snmp_temp.sh cpu" >> /etc/snmp/snmpd.conf
 	echo "extend .1.3.6.1.4.1.2021.8.5 gpu_temp /scripts/snmp_temp/snmp_temp.sh gpu" >> /etc/snmp/snmpd.conf
+    
+    mkdir  -p /scripts/snmp/
+    cd /scripts/snmp/
+    git clone http://git.klenzel.net/daniel/snmp_temp
+    chmod +x snmp_temp/snmp_sensors.sh
+    
+    usermod -aG video Debian-snmp
 fi
 
 ###########################################################################
@@ -58,10 +65,6 @@ echo "Configuration SSH-Daemon..."
 sed -i 's@#Port 22@Port 4711@g' /etc/ssh/sshd_config
 sed -i 's@#PermitRootLogin prohibit-password@PermitRootLogin yes@g' /etc/ssh/sshd_config
 
-if [ $Raspberry ]; then
-	usermod -aG video Debian-snmp
-fi
-
 echo "Enabling and restarting nessasary Services..."
 /bin/systemctl enable chrony
 /bin/systemctl restart chrony