Merge "Fix 21.12 feed directory for 22.12 upgrade"

This commit is contained in:
Zuul 2023-01-20 16:06:44 +00:00 committed by Gerrit Code Review
commit 424fdee3dc

View File

@ -39,7 +39,13 @@ source $SCRIPT_DIR/version
source /etc/build.info
FEED_DIR=/var/www/pages/feed/rel-${VERSION}
# Feed directory is different in 21.12 vs. 22.06
CURRENT_FEED_DIR=/var/www/pages/feed/rel-${SW_VERSION}
if [ ${SW_VERSION} == "21.12" ]; then
CURRENT_FEED_DIR=/www/pages/feed/rel-${SW_VERSION}
FEED_DIR=/www/pages/feed/rel-${VERSION}
fi
rm -rf ${FEED_DIR}
mkdir -p ${FEED_DIR}