mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Merge pull request #203 from IronTetsubo/issue199
Fixed issue #199 - set permissions properly for /etc/cron.d/msm
This commit is contained in:
commit
de3a963c91
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user