Merge pull request #203 from IronTetsubo/issue199

Fixed issue #199 - set permissions properly for /etc/cron.d/msm
This commit is contained in:
Zach Latta 2013-09-13 19:23:04 -07:00
commit de3a963c91
3 changed files with 1 additions and 23 deletions

View File

@ -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

View File

@ -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

View File

@ -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