-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscript.sh
69 lines (58 loc) · 3.06 KB
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
#===============================================================================================
# System Required: Ubuntu 16.04/18.04 (64bit)
# Description: A tool to autoinstall the RunCloud and custom features
# Author: CDK
#===============================================================================================
# Paste the RunCloud script from web panel instead of example
# export DEBIAN_FRONTEND=noninteractive; echo 'Acquire::ForceIPv4 "true";' | tee /etc/apt/apt.conf.d/99force-ipv4; apt-get update; apt-get install curl -y; apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade -y; curl --silent --location https://manage.runcloud.io/script/installer/link | bash -; export DEBIAN_FRONTEND=newt
echo "=============================="
echo "nanorc - Improved Nano Syntax Highlighting Files"
echo "=============================="
wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh
echo "=============================="
echo "wp cli - ianstall and add bash-completion for user www-data"
echo "=============================="
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp --info
echo "=============================="
echo "Downloading: adminer installer - adminer.sh"
echo "=============================="
cd /usr/local/bin && sudo wget https://gist.githubusercontent.com/DimaMinka/9bc8cc1f45a32dfdafd0c270e28af1c8/raw/fc6328f2d8a6a37f6e77916331f0bda8f7649b08/adminer.sh
sudo chmod +x adminer.sh
echo "=============================="
echo "Downloading: search-replace-database installer - srdb.sh"
echo "=============================="
cd /usr/local/bin && sudo wget https://gist.githubusercontent.com/DimaMinka/24c3df57a78dd841a534666a233492a9/raw/d5ca7209164c7a22879fc7863f1bac1f0145ba84/srdb.sh
sudo chmod +x srdb.sh
echo "=============================="
echo "Downloading: Runcloud shell api wrapper"
echo "=============================="
cd /usr/local/bin && sudo wget https://raw.githubusercontent.com/RunCloud-cdk/shell-api-wrapper/master/rcdk.sh
sudo mv rcdk.sh rcdk
sudo chmod +x rcdk
echo "=============================="
echo "Downloading: yq is a lightweight and flexible command-line YAML processor"
echo "=============================="
sudo add-apt-repository ppa:rmescandon/yq
sudo apt update
sudo apt install yq -y
echo "=============================="
echo "Downloading: gulp - a toolkit for automating painful or time-consuming tasks in your development workflow"
echo "=============================="
npm install gulp-cli -g
echo "=============================="
echo "Install Rocket Nginx"
echo "=============================="
git clone https://github.com/RunCloud-cdk/rocket-nginx.git /etc/nginx-rc/rocket-nginx
cp /etc/nginx-rc/rocket-nginx/rocket-nginx.ini.disabled /etc/nginx-rc/rocket-nginx/rocket-nginx.ini
cd /etc/nginx-rc/rocket-nginx/
php rocket-parser.php
cd ~/
echo "=============================="
echo "Delete self"
echo "=============================="
rm -- "$0"