login.sh aktualisiert
Logger berichtigt
This commit is contained in:
16
login.sh
16
login.sh
@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source /root/logger.sh
|
||||
|
||||
log_start
|
||||
log_info "Starte sshlogin…"
|
||||
|
||||
# Farben
|
||||
GREEN='\033[0;32m'
|
||||
@ -17,15 +21,15 @@ CA_PORT=22
|
||||
REMOTE_SIGN_SCRIPT="/home/alf/remote_sign.sh" # Pfad auf der CA-VM, wo das Script zum Signieren zu finden ist
|
||||
KEY_DIR="./temp_keys"
|
||||
KEY_NAME="temp_user_key"
|
||||
LOG_DIR="$HOME/Gitea/ssh-cert-login/log"
|
||||
LOG_SCRIPT="${LOG_DIR}/logging.sh"
|
||||
LOG_FILE="${LOG_DIR}/ssh-cert-login.log"
|
||||
# LOG_DIR="$HOME/Gitea/ssh-cert-login/log"
|
||||
# LOG_SCRIPT="${LOG_DIR}/logging.sh"
|
||||
LOG_FILE="$HOME/log.txt"
|
||||
|
||||
|
||||
# Logging initialisieren
|
||||
source "$LOG_SCRIPT"
|
||||
log_init "$LOG_FILE"
|
||||
log_start "SSH-Login über CA-Zertifikat"
|
||||
#source "$LOG_SCRIPT"
|
||||
#log_init "$LOG_FILE"
|
||||
#log_start "SSH-Login über CA-Zertifikat"
|
||||
|
||||
# Prüfen, ob der CA-Schlüssel vorhanden ist
|
||||
if [[ ! -f "$CA_KEY_PATH" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user