MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: kloxo-fan on 2014-10-17, 12:15:30
-
Hello,
every 2-3 days in my ssh client manually run command "yum clean all; yum update -y; sh /script/cleanup"
but i want to ask is it possible to make a option for auto execution of this command?
In Kloxo-MR I see Cron Task but I'm not sure if it works or not if you put this command cuz it's required root permission and cron in kloxo runs as admin.
-
Auto update will be implementing if Kloxo-MR 7 going to candidate step (aka 7.0.0.c). Now, still in beta.
-
What do you think about this script into "/etc/cron.daily/yumupdate" with chmod 755?
If works properly?
#!/bin/sh
YUM=/usr/bin/yum
# -y == assume yes
# -d == debug verbosity
# -e == error-reporting level
# -R == wait 0~n min before running the command (randomise)
# clear all packages, dependency headers, metadata and metadata cache
${YUM} -y -d 0 -e 0 clean all
# update the yum package itself
${YUM} -y -d 0 -e 0 update yum
# update everything
${YUM} -y -R 10 -e 0 -d 0 update
# cleanup Kloxo-MR
sh /script/cleanup
-
When if 7.0.0.c planned?
Auto update will be implementing if Kloxo-MR 7 going to candidate step (aka 7.0.0.c). Now, still in beta.