#!/bin/sh
PRIVATE_LOCATION="/var/packages/SSOServer/target"
ROOT_PARTITION_LOCATION="/var/packages/SSOServer/etc"
SSO_LOGIN_IMAGE_FILE_NAME=`jq .general_setting.sso_login_image ${ROOT_PARTITION_LOCATION}/ssoserver.conf | awk -F"\""  '{print $2}'`

restore_conf()
{
        /bin/cp -f /tmp/SSOServer/$SSO_LOGIN_IMAGE_FILE_NAME $PRIVATE_LOCATION/etc/
        rm -rf /tmp/SSOServer
}

restore_conf

exit 0
