Follow these steps to upgrade Xray with FIPS:
Stop the running service:
cd $JFROG_HOME/xray/app/bin ./xray.sh stop ## as xray user or via service systemctl stop xray.service
Wait for the services started by the Xray user to stop
Extract the new version:
mv jfrog-xray-<version>-linux.tar.gz /opt/jfrog/ cd /opt/jfrog tar -xf jfrog-xray-<version>-linux.tar.gz
Replace the
$JFROG_HOME/xray/appwith the newappfolder:# Export variables to simplify commands export JFROG_HOME=/opt/jfrog ## this is your old xray dir export JF_NEW_VERSION=/opt/jfrog/jfrog-xray-<version>-linux # Remove app rm -rf $JFROG_HOME/xray/app # Copy new app cp -fr $JF_NEW_VERSION/app $JFROG_HOME/xray/ # Make sure to chown again to set the right permissions for xray user eg: chown -R xray:xray /opt/jfrog/xray # Remove extracted new version rm -rf $JF_NEW_VERSION
Before starting the Xray service, set the following env variable in the file
/opt/jfrog/xray/app/bin/xray.defaultexport RABBITMQ_ADVANCED_CONFIG_FILE="${JF_PRODUCT_HOME}/var/etc/advanced.conf"Set permissions:
chown -R xray:xray /opt/jfrog/xray
Start the service:
xray/app/bin/xray.sh start|stop ## As xray user or via service systemctl <start|stop|status> xray.service