This commit is contained in:
Bob Mottram 2016-12-21 20:07:42 +00:00
parent 840c5f7976
commit 5723bf46ad
1 changed files with 1 additions and 5 deletions

View File

@ -32,11 +32,7 @@
UPGRADE_SCRIPT_NAME="${PROJECT_NAME}-upgrade"
function create_upgrade_script {
if [ -f /usr/local/bin/${PROJECT_NAME}-upgrade ]; then
cp /usr/local/bin/${PROJECT_NAME}-upgrade /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
else
cp /usr/bin/${PROJECT_NAME}-upgrade /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
fi
cp $(which ${PROJECT_NAME}-upgrade) /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return