diff --git a/src/Configs/os.php b/src/Configs/os.php index a5763ce..b34d371 100644 --- a/src/Configs/os.php +++ b/src/Configs/os.php @@ -25,6 +25,7 @@ 'zip' => 'Compress Files', 'unzip' => 'Decompress Files', 'htop' => 'Monitor Server Resources', + 'libpng12-0' => 'PNG Library', ], ] diff --git a/src/Installer/UNIT3D/Unit3dSetup.php b/src/Installer/UNIT3D/Unit3dSetup.php index ae05c7f..131c6c2 100644 --- a/src/Installer/UNIT3D/Unit3dSetup.php +++ b/src/Installer/UNIT3D/Unit3dSetup.php @@ -118,10 +118,7 @@ protected function setup() $this->process([ 'supervisorctl reread', 'supervisorctl update', - 'supervisorctl reload', - 'wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb', - 'dpkg -i /tmp/libpng12.deb', - 'rm /tmp/libpng12.deb' + 'supervisorctl reload' ]); $www_cmds = [ diff --git a/ubuntu.sh b/ubuntu.sh index 0ec0539..0df2313 100755 --- a/ubuntu.sh +++ b/ubuntu.sh @@ -22,6 +22,18 @@ check_locale() { echo -e "$IGreen OK $Color_Off" } +# Adds PPA's +add_ppa() { + echo -e "\n$Cyan Adding PPA Repositories ... $Color_Off" + + for ppa in "$@"; do + add-apt-repository -y $ppa > /dev/null 2>&1 + check $? "Adding $ppa Failed!" + done + + echo -e "$IGreen OK $Color_Off" +} + # Installs Environment Prerequisites add_pkgs() { # Update apt @@ -71,6 +83,8 @@ check() { check_locale +add_ppa ppa:linuxuprising/libpng12 + add_pkgs install_composer