Quantcast
Channel: Symantec Connect - Articles
Viewing all articles
Browse latest Browse all 1863

How to Update Mobility Suite 5.2+ User Portal Branding to Match the Admin Portal

$
0
0

If you wish for the Mobility Suite User Portal background to be white instead of black in order to match the new look in Mobility Suite 5.2+, then the following information will explain how to perform this task. Attached, I have a modified 'header-background.png' file which is white instead of the black color you will see now. The image needs to be copied to the following directories on each Front End:

/usr/local/nukona/vol2/operations_portal/static/images/user_portal/header-background.png
/usr/local/nukona/vol2/static/static/images/user_portal/header-background.png
/usr/local/nukona/appstore_cu/static/images/user_portal/header-background.png

I would recommend backing-up the old 'header-background.png' file as a '.old' file just in case you wish to easily switch back for any reason.

The file permissions/ownership will also need to be changed after copying them over, but it depends on which version of Mobility Suite you are using (5.3+ = nginx)(5.2.2 and lower = apache).

If you do not see this change take effect in your web browser immediately, then you will need to open an incognito browser window to see the changes or clear your browser cache.

I have attached an automated method to update these files, make the necessary back-ups, and change the permissions to be used by nginx or apache depending on user input explaining whether you are on 5.3+:

The attached files need to be copied to the same directory for the script to work. It does not matter which directory they are in, so long as they are both located in the same one. You can choose to use your own version of the 'header-background.png' file if you prefer. It should be in '.png' format and needs to be 5x46 pixels. The bit depth should be 24 (Linux preferred).
 

The script's permissions may need to be modified before it can be run after it has been uncompressed. In order to uncompress, qualify the script for use, and execute it the following commands need to be run from the Terminal in the directory where the script is located:

# yum -y install unzip
# unzip SetNewUserPortalBackground.sh_.zip -d ~
# cd ~
# chmod +x SetNewUserPortalBackground.sh
# ./SetNewUserPortalBackground.sh

*Note* - This script will need to be executed on all Mobility Suite Front End servers and the 'header-background.png' file will need to be in the same directory for the changes to take effect.

For reference, the contents of the attached 'SetNewUserPortalBackground.sh' script has been included below:

#!/usr/bin/env bash

cp /usr/local/nukona/vol2/operations_portal/static/images/user_portal/header-background.png /usr/local/nukona/vol2/operations_portal/static/images/user_portal/header-background.png.old

cp /usr/local/nukona/vol2/static/static/images/user_portal/header-background.png /usr/local/nukona/vol2/static/static/images/user_portal/header-background.png.old

cp /usr/local/nukona/appstore_cu/static/images/user_portal/header-background.png /usr/local/nukona/appstore_cu/static/images/user_portal/header-background.png.old

cp header-background.png /usr/local/nukona/vol2/operations_portal/static/images/user_portal/

cp header-background.png /usr/local/nukona/vol2/static/static/images/user_portal/

cp header-background.png /usr/local/nukona/appstore_cu/static/images/user_portal/

MS_VERSION="$1"

if [ -z "$MS_VERSION" ]; then
echo -n "Is Mobility Suite version 5.3+?[y]: "
read MS_VERSION
fi

if [ -z "$MS_VERSION" ]; then
MS_VERSION=y
fi

if [ "$MS_VERSION" = "y" ]; then

chown nginx:nginx /usr/local/nukona/vol2/operations_portal/static/images/user_portal/header-background.png

chown nginx:nginx /usr/local/nukona/vol2/static/static/images/user_portal/header-background.png

chown nginx:nginx /usr/local/nukona/appstore_cu/static/images/user_portal/header-background.png

else

chown apache:apache /usr/local/nukona/vol2/operations_portal/static/images/user_portal/header-background.png

chown apache:apache /usr/local/nukona/vol2/static/static/images/user_portal/header-background.png

chown apache:apache /usr/local/nukona/appstore_cu/static/images/user_portal/header-background.png

fi

chmod 644 /usr/local/nukona/vol2/operations_portal/static/images/user_portal/header-background.png

chmod 644 /usr/local/nukona/vol2/static/static/images/user_portal/header-background.png

chmod 644 /usr/local/nukona/appstore_cu/static/images/user_portal/header-background.png

echo "+----------------------------------------------------------+"
echo "|You have successfully updated your User Portal background!|"
echo "+----------------------------------------------------------+"


Viewing all articles
Browse latest Browse all 1863