Aşağıdaki script tüm contentlerde yeni bir sürüm oluşturur.
#!/bin/bash
if [ -f /var/run/satellite-create-new-content-publish ]
then
echo Content olusturma baslamis
else
touch /var/run/satellite-create-new-content-publish
date > /var/log/satellite-contnetview.log
content_ids=$(hammer --no-headers content-view list | awk '{print $1}' |sort -n)
for id in $content_ids
do
echo $id icin yeni surum olusturuluyor
hammer --no-headers content-view publish --id=${id}
done
date >> /var/log/satellite-contnetview.log
rm -f /var/run/satellite-create-new-content-publish
fi
#################################################################
crontab'da çalışan işlemleri listelemek;
pstree -p $(ps -o pid,cmd -C 'crond' |grep crond |awk '{print $1}')
Yorumlar
Yorum Gönder