#!/bin/bash
echo "Enter date in format YYYYMMDDNN for folder static-filesYYYYMMDDNN"
read dt
sudo mv /opt/nginx/mp/bnpl-chat/script.js /opt/nginx/mp/bnpl-chat/script.js-$dt
sudo mv /opt/nginx/mp/bnpl-chat-ios/script.js /opt/nginx/mp/bnpl-chat-ios/script.js-$dt
sudo cp static-files$dt/bnpl-chat/script.js /opt/nginx/mp/bnpl-chat/script.js
sudo cp static-files$dt/bnpl-chat-ios/script.js /opt/nginx/mp/bnpl-chat-ios/script.js
sudo chown -R tuz_cnfs_local_jenkins_images. /opt/nginx/mp
sudo chmod -R 750 /opt/nginx/mp

