diff --git a/installers/common.sh b/installers/common.sh index dee2294..f1ea060 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -116,13 +116,7 @@ function install_config() { # Installs msm.cron into /etc/cron.d function install_cron() { install_log "Installing MSM cron file" - sudo install "$dl_dir/msm.cron" /etc/cron.d/msm || install_error "Couldn't install cron file" -} - -# Reloads cron service (if necessary) -function reload_cron() { - # OVERLOAD THIS - install_error "No function defined for reload_cron" + sudo install -m0644 "$dl_dir/msm.cron" /etc/cron.d/msm || install_error "Couldn't install cron file" } # Installs init script into /etc/init.d @@ -160,7 +154,6 @@ function install_msm() { patch_latest_files install_config install_cron - reload_cron install_init enable_init update_msm diff --git a/installers/debian.sh b/installers/debian.sh index aa2cb0d..94db4e1 100755 --- a/installers/debian.sh +++ b/installers/debian.sh @@ -13,16 +13,6 @@ function install_dependencies() { sudo apt-get install screen rsync zip || install_error "Couldn't install dependencies" } -function reload_cron() { - install_log "Reloading cron service" - hash service 2>/dev/null - if [[ $? == 0 ]]; then - sudo service cron reload - else - sudo /etc/init.d/cron reload - fi -} - function enable_init() { install_log "Enabling automatic startup and shutdown" hash insserv 2>/dev/null diff --git a/installers/redhat.sh b/installers/redhat.sh index 17a73ba..ee81dde 100755 --- a/installers/redhat.sh +++ b/installers/redhat.sh @@ -12,11 +12,6 @@ function install_dependencies() { sudo yum install screen rsync zip || install_error "Couldn't install dependencies" } -function reload_cron() { - install_log "Reloading cron service" - sudo service crond reload -} - function enable_init() { install_log "Enabling automatic startup and shutdown" sudo chkconfig --add msm