Requirement:First i need to unlock the directory which i had a script for it.If i select app1 it should unlock the directory and after chnages in the script once need to lock the directory with lock command
The below highlighed variables in lock and unlock has to be changed according choice.Please help me with the code.
/usr/local/bin/pbrun /opt/apps/8/a/scripts/perm.sh unlock TEA01 app1
echo "Select an application name you'd like to update"
echo "1 : app1 / TEA1"
echo "2 : app2 / TEA2"
echo "3 : TNA1 / REA1"
echo "4 : TNA2 / REX2"
echo " "
echo "Enter selection:"
read choice1
echo " "
after the changing the files in the directory it should get locked again with the below command.
/usr/local/bin/pbrun /opt/apps/8/a/scripts/perm.sh lock TEA01 app1