martedì 21 aprile 2009

cleaning logs up

#!/bin/bash

if [ $UID -ne 0 ]
then
echo "you got to be root bomber";
exit;
else

DIR_LOG=/var/log
cd $DIR_LOG
cat /dev/null > messages
cat /dev/null > wtmp

echo "log cancellati bomber"
exit
fi

Nessun commento:

How to deploy Podman images to OpenShift Container Platform (CRC on localhost)

I have a microservice on localhost and I want to deploy its Podman image on OCP, which I am running using CRC on localhost.       1. Get the...