|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
# Automatic install script for ArozOS - by tobychui
|
|
# Automatic install script for ArozOS - by tobychui
|
|
# For internal use only, All Right Reserved
|
|
# For internal use only, All Right Reserved
|
|
|
|
+# This code compitiable with Amazon Linux 2 and Debian
|
|
|
|
|
|
server="https://jenkins.alanyeung.co"
|
|
server="https://jenkins.alanyeung.co"
|
|
echo "[ArozOS Installer]"
|
|
echo "[ArozOS Installer]"
|
|
@@ -40,7 +41,9 @@ fi
|
|
if [[ $OS == "Amazon Linux" ]]; then
|
|
if [[ $OS == "Amazon Linux" ]]; then
|
|
echo "YUM Package Manager"
|
|
echo "YUM Package Manager"
|
|
sudo yum update
|
|
sudo yum update
|
|
- sudo yum install ffmpeg samba git net-tools unzip -y
|
|
|
|
|
|
+ sudo yum install epel-release
|
|
|
|
+ sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
|
|
|
|
+ sudo yum install ffmpeg ffmpeg-devel samba git net-tools unzip -y
|
|
else
|
|
else
|
|
#elif [[ $OS == "Debian" ]]; then
|
|
#elif [[ $OS == "Debian" ]]; then
|
|
echo "APT Package Manager"
|
|
echo "APT Package Manager"
|
|
@@ -55,7 +58,6 @@ unzip arozos_web_components.zip
|
|
|
|
|
|
echo "Creating ArozOS structure..."
|
|
echo "Creating ArozOS structure..."
|
|
cd arozos
|
|
cd arozos
|
|
-sudo chmod 777 -R ./
|
|
|
|
|
|
|
|
echo "Installing Core binary from Jenkins...."
|
|
echo "Installing Core binary from Jenkins...."
|
|
arch=$(uname -i)
|
|
arch=$(uname -i)
|
|
@@ -73,6 +75,8 @@ else
|
|
fi
|
|
fi
|
|
|
|
|
|
mv arozos_$sysname\_$arch arozos
|
|
mv arozos_$sysname\_$arch arozos
|
|
|
|
+sudo chmod 777 -R ./
|
|
|
|
+
|
|
printf "#%c/bin/bash\nsudo ./arozos -port 8080 -tls=true -tls_port 8443" ! | sudo tee -a ./start.sh
|
|
printf "#%c/bin/bash\nsudo ./arozos -port 8080 -tls=true -tls_port 8443" ! | sudo tee -a ./start.sh
|
|
|
|
|
|
echo "Setting up system services"
|
|
echo "Setting up system services"
|