Explorar o código

Update install_latest_jenkins.sh

AY %!s(int64=3) %!d(string=hai) anos
pai
achega
b702b3844d
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      documents/headless setup files/install_latest_jenkins.sh

+ 6 - 2
documents/headless setup files/install_latest_jenkins.sh

@@ -2,6 +2,7 @@
 
 # Automatic install script for ArozOS - by tobychui
 # For internal use only, All Right Reserved
+# This code compitiable with Amazon Linux 2 and Debian
 
 server="https://jenkins.alanyeung.co"
 echo "[ArozOS Installer]"
@@ -40,7 +41,9 @@ fi
 if [[ $OS == "Amazon Linux" ]]; then
     echo "YUM Package Manager"
     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
 #elif [[ $OS == "Debian" ]]; then
     echo "APT Package Manager"
@@ -55,7 +58,6 @@ unzip arozos_web_components.zip
 
 echo "Creating ArozOS structure..."
 cd arozos
-sudo chmod 777 -R ./
 
 echo "Installing Core binary from Jenkins...."
 arch=$(uname -i)
@@ -73,6 +75,8 @@ else
 fi
 
 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
 
 echo "Setting up system services"