One Click Installation service connects to a remote Linux machine via SSH (https://www.nuget.org/packages/SSH.NET/ or http://sshnet.codeplex.com/) using the following provided user data: username with admin access rights, password or SSH key and the server IP address or full domain name, uploads the scripts from the
Executables folder and runs them.
The scripts are performing the following:
checking the data already existing on the provided server;
/app/onlyoffice work directory (the folder all the necessary data will be copied to);
getting the information about the currently used operating system;
checking ports of the current computer listed as parameter to the command;
bash check-ports.sh "80,443,5222,25,143,587"
bash run-docker.sh "Ubuntu" "14.04" "3.13.0-36-generic" "x86_64"
This string will be different depending on what is returned at step 3, i.e. on which Linux distributive is installed on the server.
installing and running Docker;
creating the Docker network;
installing the Document Server;
installing the Mail Server using the specified domain name;
bash run-mail-server.sh -d "domainName"
installing Community Server and link it with the Document Server and Mail Server, if selected.
During the installation process the reboot might be required after which the scripts will continue to run. To indicate that the restart is going to be done, the
afterReboot(true) parameter is used.
Before running each script two commands need to be executed:
chmod +x scriptPath
sed -i 's/\r$//' scriptPath
scriptPath is the path to the script
This is used to correct the document formatting (known \n\r issues in different operating systems).