Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
anjasamar committed Jun 27, 2024
1 parent 36e307c commit 08fe7ce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
5 changes: 3 additions & 2 deletions installer-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https

sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt-get install software-properties-common -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install net-tools curl wget nano micro vim -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install rpl sed zip unzip openssl expect dirmngr lsb-release ca-certificates dnsutils dos2unix zsh htop ffmpeg -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install net-tools curl wget nano micro vim neofetch -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install rpl sed zip unzip openssl expect dirmngr lsb-release -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install ca-certificates dnsutils dos2unix zsh htop ffmpeg -y
sudo apt update

# GET IP
Expand Down
29 changes: 15 additions & 14 deletions installer-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ sudo dpkg -l | grep php | tee packages.txt

sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt-get install software-properties-common -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install net-tools curl wget nano micro vim -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install rpl sed zip unzip openssl expect dirmngr lsb-release ca-certificates dnsutils dos2unix zsh htop ffmpeg -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install net-tools curl wget nano micro vim neofetch -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install rpl sed zip unzip openssl expect dirmngr lsb-release -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install ca-certificates dnsutils dos2unix zsh htop ffmpeg -y
sudo apt update

# GET IP
Expand Down Expand Up @@ -296,7 +297,7 @@ echo "${reset}"

sleep 15s

sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php7.4
#sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php7.4
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php7.4-fpm
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php7.4-common
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php7.4-curl
Expand Down Expand Up @@ -330,7 +331,7 @@ EOF
service php7.4-fpm restart
sleep 10s

sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.0
#sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.0
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.0-fpm
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.0-common
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.0-curl
Expand Down Expand Up @@ -364,7 +365,7 @@ EOF
service php8.0-fpm restart
sleep 10s

sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.1
#sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.1
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.1-fpm
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.1-common
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.1-curl
Expand Down Expand Up @@ -398,7 +399,7 @@ EOF
service php8.1-fpm restart
sleep 10s

sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.2
#sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.2
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.2-fpm
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.2-common
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.2-curl
Expand Down Expand Up @@ -433,7 +434,7 @@ sudo service php8.2-fpm restart

sleep 10s

sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.3
#sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.3
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.3-fpm
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.3-common
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php8.3-curl
Expand Down Expand Up @@ -509,7 +510,7 @@ echo "GIT setup..."
echo "${reset}"


apt-get -y install git
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install git
sudo ssh-keygen -t rsa -C "git@github.com" -f /etc/linkpanel/github -q -P ""
sleep 5s

Expand All @@ -522,7 +523,7 @@ echo "${reset}"

sleep 10s

apt-get -y install supervisor
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install supervisor
sudo service supervisor restart
sudo service supervisor status
sleep 5s
Expand Down Expand Up @@ -588,7 +589,7 @@ echo "${reset}"
sleep 5s


sudo apt-get install -y mysql-server
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server
SECURE_MYSQL=$(expect -c "
set timeout 10
spawn mysql_secure_installation
Expand Down Expand Up @@ -626,7 +627,7 @@ echo "${reset}"

sleep 5s

apt install -y redis-server
sudo DEBIAN_FRONTEND=noninteractive apt install -y redis-server
sudo rpl -i -w "supervised no" "supervised systemd" /etc/redis/redis.conf
systemctl restart redis.service
sleep 15s
Expand Down Expand Up @@ -744,8 +745,8 @@ echo "Last LinkPanel installation steps..."
echo "${reset}"
sleep 5s

chown www-data:linkpanel -R /var/www/html
chmod -R 750 /var/www/html
sudo chown www-data:linkpanel -R /var/www/html
sudo chmod -R 750 /var/www/html
echo 'DefaultStartLimitIntervalSec=1s' >> /usr/lib/systemd/system/user@.service
echo 'DefaultStartLimitBurst=50' >> /usr/lib/systemd/system/user@.service
echo 'StartLimitBurst=0' >> /usr/lib/systemd/system/user@.service
Expand Down Expand Up @@ -796,7 +797,7 @@ echo "${bggreen}${black}${bold}"
echo "LinkPanel installation has been completed..."
echo "${reset}"

sleep 15s
sleep 5s

HOSTNAME=hostname -f | awk '{print $1}'
IP=$(curl -s https://checkip.amazonaws.com)
Expand Down

0 comments on commit 08fe7ce

Please sign in to comment.