Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(install): remove override copy
Browse files Browse the repository at this point in the history
  • Loading branch information
sc979 committed Feb 21, 2020
1 parent be6e06d commit 95c03dd
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions libinstall/CentWeb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -496,23 +496,6 @@ check_result $? "$(gettext "Install Centreon cron.d file")"
## cron binary
cp -R $TMP_DIR/src/cron/ $TMP_DIR/final/

log "INFO" "$(gettext "Change macros for centAcl.php")"
${SED} -e 's|@CENTREON_ETC@|'"$CENTREON_ETC"'|g' \
$TMP_DIR/src/cron/centAcl.php > $TMP_DIR/work/cron/centAcl.php
check_result $? "$(gettext "Change macros for centAcl.php")"

cp -f $TMP_DIR/work/cron/centAcl.php \
$TMP_DIR/final/cron/centAcl.php >> "$LOG_FILE" 2>&1

log "INFO" "$(gettext "Change macros for downtimeManager.php")"
${SED} -e 's|@CENTREON_ETC@|'"$CENTREON_ETC"'|g' \
-e 's|@CENTREON_VARLIB@|'"$CENTREON_VARLIB"'|g' \
$TMP_DIR/src/cron/downtimeManager.php > $TMP_DIR/work/cron/downtimeManager.php
check_result $? "$(gettext "Change macros for downtimeManager.php")"

cp -f $TMP_DIR/work/cron/downtimeManager.php \
$TMP_DIR/final/cron/downtimeManager.php >> "$LOG_FILE" 2>&1

log "INFO" "$(gettext "Change macros for centreon-backup.pl")"
${SED} -e 's|@CENTREON_ETC@|'"$CENTREON_ETC"'|g' \
$TMP_DIR/src/cron/centreon-backup.pl > $TMP_DIR/work/cron/centreon-backup.pl
Expand All @@ -524,7 +507,7 @@ cp -f $TMP_DIR/work/cron/centreon-backup.pl \
log "INFO" "$(gettext "Install cron directory")"
$INSTALL_DIR/cinstall $cinstall_opts \
-u "$CENTREON_USER" -g "$CENTREON_GROUP" -d 755 -m 644 \
$TMP_DIR/final/cron/* $INSTALL_DIR_CENTREON/cron/ >> "$LOG_FILE" 2>&1
$TMP_DIR/work/cron/* $INSTALL_DIR_CENTREON/cron/ >> "$LOG_FILE" 2>&1
check_result $? "$(gettext "Install cron directory")"

log "INFO" "$(gettext "Modify rights for eventReportBuilder")"
Expand Down

0 comments on commit 95c03dd

Please sign in to comment.