User avatar
Nerigal
Lisker
Posts: 23
Joined: Thu Apr 07, 2016 2:55 pm

Lisk Auto Update script

Wed Apr 13, 2016 4:12 pm

Hello every one,

My simple script that allow you to forget about updates
just add this script in your cron job *** must run under your lisk user ***

#============================== Requirement ==============================#

CentOS

Code: Select all

sudo yum install mutt


Ubuntu

Code: Select all

sudo apt-get install mutt


#============================== Requirement ==============================#

Code: Select all

wget https://raw.githubusercontent.com/Nerigal/LISK/master/check-update.sh -O /opt/lisk/script/check-update.sh
chmod +x  /opt/lisk/script/check-update.sh


Edit the file check-update.sh to fit to your need, ( you will see comment tags )
Then add cron task under your lisk user
Example :

Code: Select all

#!/bin/bash
EMAIL="email@domain.com"
HOSTNAME=`hostname`
DATE=`date +"%Y-%m-%d %H:%M"`
/opt/lisk/script/check-update.sh | mutt -s "$HOSTNAME  - Update Report $DATE" $EMAIL


Hope this help !

Return to “Guides”

Who is online

Users browsing this forum: No registered users and 2 guests