Simplify
This commit is contained in:
parent
840c5f7976
commit
5723bf46ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue