Update installer script
This commit is contained in:
parent
f718ea9a46
commit
60a5ba7b61
2 changed files with 49 additions and 1 deletions
48
install.sh
Executable file
48
install.sh
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ ! $(whoami) = "root" ]
|
||||
then
|
||||
echo "Please run this script as root";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
export url="https://github.com/oitsjustjose/DMSM/releases/download/1.0.0/dmsm"
|
||||
|
||||
if [ ! $(command -v docker) ]
|
||||
then
|
||||
echo "docker is not installed. Please install it via https://docs.docker.com/get-docker/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Downloading DMSM.."
|
||||
|
||||
if [ $(command -v curl) ]
|
||||
then
|
||||
curl -L $url > dmsm;
|
||||
else
|
||||
if [ $(command -v wget) ]
|
||||
then
|
||||
wget $url dmsm;
|
||||
else
|
||||
echo "You don't seem to have curl or wget. Please install one of your choice!"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Installing DMSM..";
|
||||
|
||||
chmod +x dmsm;
|
||||
|
||||
if [ -d "/usr/local/bin" ]
|
||||
then
|
||||
mv ./dmsm /usr/local/bin/dmsm
|
||||
else
|
||||
if [ -d "/usr/bin" ]
|
||||
then
|
||||
mv ./dmsm /usr/bin/dmsm
|
||||
else
|
||||
echo "/usr/local/bin nor /usr/bin could not be found. Are you on a Unix Device??"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Installed! Use via dmsm (create|start|stop|restart|delete) SERVERNAME"
|
||||
|
|
@ -10,7 +10,7 @@ DMSM is for **Unix Systems Only**. I have compiled it for macOS (both ARM and x8
|
|||
|
||||
### Requirements
|
||||
|
||||
The only requirement for using this is Docker. The application is written in Python but compiled to an executible, so you don't even need Python. All you need is docker, which you can find how to set up [here]https://docs.docker.com/get-docker/).
|
||||
The only requirement for using this is Docker. The application is written in Python but compiled to an executible, so you don't even need Python. All you need is docker, which you can find how to set up [here](https://docs.docker.com/get-docker/).
|
||||
|
||||
### Install
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue