#!/bin/bash
#Script para actualizar cloudpanel.

LOG_FILE="/etc/clpc/clp-autoupdate.log"

echo "[+]==============================================[+]" >> "$LOG_FILE"
echo "Starting clp-update at $(date)" >> "$LOG_FILE"
sudo clp-update >> "$LOG_FILE" 2>&1
echo "clp-update completed at $(date)" >> "$LOG_FILE"
echo "" >> "$LOG_FILE"