e0b9fbadcb
Relocate writable /www to /var/www Story: 2009101 Task: 43535 Depends-on: https://review.opendev.org/c/starlingx/metal/+/810023 Change-Id: Iecb3e679d73350072a6d9e0219e001c1d8c53c09 Signed-off-by: Bin Qian <bin.qian@windriver.com>
46 lines
1.4 KiB
Bash
Executable File
46 lines
1.4 KiB
Bash
Executable File
#! /bin/bash
|
|
#
|
|
# Copyright (c) 2013-2014 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
|
|
# Loads Up Utilities and Commands Variables
|
|
source /usr/local/sbin/collect_parms
|
|
source /usr/local/sbin/collect_utils
|
|
|
|
SERVICE="patching"
|
|
LOGFILE="${extradir}/${SERVICE}.info"
|
|
echo "${hostname}: Patching Info .....: ${LOGFILE}"
|
|
|
|
###############################################################################
|
|
# All nodes
|
|
###############################################################################
|
|
delimiter ${LOGFILE} "smart channel --show"
|
|
smart channel --show 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
###############################################################################
|
|
# Only Controller
|
|
###############################################################################
|
|
if [ "$nodetype" = "controller" ] ; then
|
|
|
|
delimiter ${LOGFILE} "sw-patch query"
|
|
sw-patch query 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
delimiter ${LOGFILE} "sw-patch query-hosts"
|
|
sw-patch query-hosts 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
delimiter ${LOGFILE} "sw-patch query-hosts --debug"
|
|
sw-patch query-hosts --debug 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
delimiter ${LOGFILE} "find /opt/patching"
|
|
find /opt/patching 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
delimiter ${LOGFILE} "find /var/www/pages/updates"
|
|
find /var/www/pages/updates 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
fi
|
|
|
|
exit 0
|