-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_install.sh
47 lines (34 loc) · 1.73 KB
/
example_install.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
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive;
apt-get update;
apt-get -y dist-upgrade;
apt-get -y install openssl git wget curl php-cli;
export PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address);
export PUBLIC_IPV6=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address);
# A list of timezones can be found here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Or automatic: https://geoip.ubuntu.com/lookup
export TZ="";
# Set the hostname. What to name this server?
export INSTANT_HOSTNAME="";
# Set the configured domain(s) to use (e.g. yourdomain.com, anotherdomain.com).
export INSTANT_EMAIL_DOMAIN="";
export INSTANT_WWW_DOMAINS="";
# Select servers to install (if any).
# Options: nginx, php-fpm, email-sendonly, mariadb, mysql, postgresql, php-drc
export INSTANT_SERVERS="";
cd /root;
# Optionally clone useful but unrelated CubicleSoft network and server management software.
# NOTE: Some software products require separate installation/configuration (e.g. Cloud Backup is not magical).
#git clone https://github.com/cubiclesoft/net-test.git;
#git clone https://github.com/cubiclesoft/network-speedtest-cli.git;
#git clone https://github.com/cubiclesoft/php-ssh.git;
#git clone https://github.com/cubiclesoft/php-ssl-certs.git;
#git clone https://github.com/cubiclesoft/cloud-backup.git;
# Clone and run Server Instant Start.
git clone https://github.com/cubiclesoft/server-instant-start.git;
cd /root/server-instant-start;
php install.php init-system php-cli;
# Put additional installation stuff here (e.g. your application installer).
# Comment this out if you want to reboot manually later.
cd /root/server-instant-start;
php install.php reboot-if-required;