Hello,
-I have a script /opt/labs/installer/fabric/first-network/byfn.sh . This script internally call various files like ./docker_cli.yaml , ./docker-compose-cli.yaml which are located in /opt/labs/installer/fabric/first-work folder.
-When I am logged in as root and run the script as "/opt/labs/installer/fabric/first-work/byfn.sh up" it works perfectly fine.
-But when I am logged in as other user and run the script as "/opt/labs/installer/fabric/first-work/byfn.sh up" it says docker_cli.yaml , docker-compose-cli.yaml are missing and could find them in the directory.
-I cannot update the script manually and give the full path as it is over 600 lines of code
-How do I run the script so that all these files are visible to the byfn .sh script? Please help.
Thanks in advance
-I have a script /opt/labs/installer/fabric/first-network/byfn.sh . This script internally call various files like ./docker_cli.yaml , ./docker-compose-cli.yaml which are located in /opt/labs/installer/fabric/first-work folder.
-When I am logged in as root and run the script as "/opt/labs/installer/fabric/first-work/byfn.sh up" it works perfectly fine.
-But when I am logged in as other user and run the script as "/opt/labs/installer/fabric/first-work/byfn.sh up" it says docker_cli.yaml , docker-compose-cli.yaml are missing and could find them in the directory.
-I cannot update the script manually and give the full path as it is over 600 lines of code
-How do I run the script so that all these files are visible to the byfn .sh script? Please help.
Thanks in advance