chore: cleanup
This commit is contained in:
+1
-11
@@ -73,14 +73,6 @@ setup_directories() {
|
||||
log "INFO" "Directory setup complete"
|
||||
}
|
||||
|
||||
# Function to generate a random filename
|
||||
# generate_random_filename() {
|
||||
# local extension="$1"
|
||||
# local timestamp=$(date +%s)
|
||||
# local random_part=$(openssl rand -hex 4)
|
||||
# echo "${timestamp}_${random_part}.${extension}"
|
||||
# }
|
||||
|
||||
generate_random_filename() {
|
||||
local extension="$1"
|
||||
local random_part=$(openssl rand -base64 6 | tr -dc 'A-Za-z' | head -c 8)
|
||||
@@ -123,8 +115,7 @@ validate_ssh_key() {
|
||||
log "WARN" "Fixing SSH key permissions: $SSH_KEY_PATH"
|
||||
chmod 600 "$SSH_KEY_PATH"
|
||||
fi
|
||||
|
||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [DEBUG] Using SSH key authentication: $SSH_KEY_PATH" >> "$LOGFILE"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -250,7 +241,6 @@ generate_thumbnails() {
|
||||
|
||||
local response
|
||||
if response=$(curl -s "https://${PHOTON_DOMAIN}/job/generate_thumbnails" 2>&1); then
|
||||
log "INFO" "Thumbnail generation response: $response"
|
||||
|
||||
# Parse JSON response to check status
|
||||
if echo "$response" | grep -q '"status":"success"'; then
|
||||
|
||||
Reference in New Issue
Block a user