#!/bin/sh #---------------------------------------------------------------------------- # /etc/init.d/update-packages-db - package-manager util # # Creation : 2016-06-21 hbfl # Last Update: $Id$ # # Copyright (c) 2016-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- case "${1}" in start) run_last=$(/usr/bin/cat /var/lib/eisman/lastrun 2>/dev/null) run_now=$(/usr/bin/date +%Y%m%d) if [ ${run_last:-00000000} -lt ${run_now} ] then echo ${run_now} >/var/lib/eisman/lastrun # update packages.db /var/install/config.d/url.sh --update-packages-db & fi ;; esac exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------