Compare commits

...

3 Commits

Author SHA1 Message Date
scriptos
715788318c Wording geändert 2024-11-25 19:31:57 +01:00
scriptos
49f9ab3703 Doku aktualisiert 2024-04-13 21:58:12 +02:00
scriptos
5b702be1d3 Version 1 archiviert 2024-04-13 21:51:36 +02:00
5 changed files with 21 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
# Variablen:
# Typ: Variablen für Script weekly-update.v3.sh
# Typ: Variablen für Script linux-updater.v2.sh
# Git-Reposit.:
# Version: 1.0
# Datum: 13.04.2024

View File

@@ -12,9 +12,9 @@ Dieses Skript ist eine verbesserte Version eines wöchentlichen Update-Skripts f
## Verwendung
1. Klone das Repository: `git clone https://git.techniverse.net/scriptos/weekly-updater.git`
2. Navigiere in das Verzeichnis: `cd weekly-updater`
3. Führe das Skript aus: `bash weekly-update.v2.sh`
1. Klone das Repository: `git clone https://git.techniverse.net/scriptos/linux-updater.git`
2. Navigiere in das Verzeichnis: `cd linux-updater`
3. Führe das Skript aus: `bash linux-updater.v3.sh`
## Beispiel Installation:
@@ -22,12 +22,12 @@ Dieses Skript ist eine verbesserte Version eines wöchentlichen Update-Skripts f
# Script zum Updaten des Systems und CronJob erstellen
mkdir -p /home/scripts/default
mkdir -p /tmp/git
git clone https://git.techniverse.net/scriptos/weekly-updater.git /tmp/git/weekly-updater
cp /tmp/git/weekly-updater/weekly-update.v2.sh /home/scripts/default/weekly-update.v2.sh
git clone https://git.techniverse.net/scriptos/linux-updater.git /tmp/git/linux-updater
cp /tmp/git/linux-updater/weekly-update.v3.sh /home/scripts/default/weekly-update.v3.sh
chmod 755 -R /home/scripts/default
chmod +x /home/scripts/default/weekly-update.v2.sh
cat <(crontab -l) <(echo "@weekly /home/scripts/default/weekly-update.v2.sh > /dev/null 2>&1") | crontab -
rm -r /tmp/git/weekly-updater
chmod +x /home/scripts/default/weekly-update.v3.sh
cat <(crontab -l) <(echo "@weekly /home/scripts/default/weekly-update.v3.sh > /dev/null 2>&1") | crontab -
rm -r /tmp/git/linux-updater
```
## Lizenz

View File

@@ -1,17 +1,17 @@
#!/bin/bash
# Script Name: weekly-update.v2.sh
# Script Name: linux-updater.v2.sh
# Beschreibung: Wöchentliches Update-Skript für Linux-Systeme
# Aufruf: bash ./weekly-update.v2.sh
# Aufruf: bash ./linux-updater.v2.sh
# Autor: Patrick Asmus
# Web: https://www.techniverse.net
# Git-Reposit.: https://git.techniverse.net/scriptos/weekly-updater.git
# Version: 2.2
# Datum: 31.03.2024
# Modifikation: Umstellung auf neue Domain
# Datum: 25.11.2024
# Modifikation: Wording geändert
#####################################################
# Variablen
SCRIPT_NAME=weekly-update.v2.sh
SCRIPT_NAME=linux-updater.v2.sh
HOSTNAME=$(hostname)
MAIL=root
LOGDIR=/var/log/script-logs

View File

@@ -1,20 +1,20 @@
#!/bin/bash
# Script Name: weekly-update.v3.sh
# Script Name: linux-updater.v3.sh
# Beschreibung: Wöchentliches Update-Skript für Linux-Systeme
# Aufruf: bash ./weekly-update.v3.sh
# Aufruf: bash ./linux-updater.v3.sh
# Autor: Patrick Asmus
# Web: https://www.techniverse.net
# Git-Reposit.: https://git.techniverse.net/scriptos/weekly-updater.git
# Version: 3.0
# Datum: 13.04.2024
# Modifikation: Version 3 released | Webhooks sind jetzt Bestandteil
# Version: 3.1
# Datum: 24.11.2024
# Modifikation: Wording geändert
#####################################################
# Umgebungsvariablen
source /root/.env/.weekly-update.v3.env
source /root/.env/.linux-updater.v3.env
# Variablen
SCRIPT_NAME=weekly-update.v3.sh
SCRIPT_NAME=linux-updater.v3.sh
HOSTNAME=$(hostname)
MAIL=root
LOGDIR=/var/log/script-logs