Closed nopam-og closed 1 year ago
Here you can see, unzip works perfectly.
Also when I remove the -v tag from the top of the script, it runs unzip, and shows me the output.
Updated code for a new kind of check for unzip. Please check and advise. We checked in CentOS and Debian flavors.
Updated code for a new kind of check for unzip. Please check and advise. We checked in CentOS and Debian flavors.
Cool!
Now I get a different output:
Is there supposed to be a ZIP in the directory of the script?
Is there supposed to be a ZIP in the directory of the script?
No, it just need to be installed as root. Are you running script as root? What is your flavor and version?
Is there supposed to be a ZIP in the directory of the script?
No, it just need to be installed as root. Are you running script as root? What is your flavor and version?
Okay, the script is in /root and I'm running it with the root user:. I'm currently on Debian 11.
can you post the script call code just like you are running it? (replace important IDs with X's)
Owner
sudo sh ./rmmagent-linux.sh install amd64 "https://mesh.xxxxx.com/meshagents?id=xxxxxxxxxxxxxxxxxx&installflags=0&meshinstall=6" "https://api.xxxxx.com" 1 1 "XXXXXXXXXXXXXX" server
Try this format of installation
sudo ./rmmagent-linux.sh install 'amd64' 'https://mesh.xxxxx.com/meshagents?id=xxxxxxxxxxxxxxxxxx&installflags=0&meshinstall=6' 'https://api.xxxxx.com' '1' '1' 'XXXXXXXXXXXXXX' 'server'
Usually calling a bash script is not necessary to use "sh" before the "./script.sh", that might be the problem in your case.
Try this format of installation
sudo ./rmmagent-linux.sh install 'amd64' 'https://mesh.xxxxx.com/meshagents?id=xxxxxxxxxxxxxxxxxx&installflags=0&meshinstall=6' 'https://api.xxxxx.com' '1' '1' 'XXXXXXXXXXXXXX' 'server'
Usually calling a bash script is not necessary to use "sh" before the "./script.sh", that might be the problem in your case.
Still getting errors:
Fixed it by performing: chmod +x rmmagent-linux.sh
Much appreciation for your support! <3
Hi! For some reason when running your script, I get the error unzip could not be found. Though I checked, it is installed, and in the $PATH variable.![image](https://user-images.githubusercontent.com/56748179/208088891-fd489f87-d9f6-428d-bd62-07d34a34ecd3.png)