-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfreebsd-setup.sh
executable file
·34 lines (26 loc) · 1.14 KB
/
freebsd-setup.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
#!/bin/sh
echo "Running FreeBSD GCE Instance setup..."
echo
echo "Setting up user environment for `whoami`"
echo
curl https://raw.githubusercontent.com/jfreeze/gce-freebsd/master/user-env.sh > /tmp/user-env.sh
/bin/sh /tmp/user-env.sh
echo "Installing base applications..."
curl https://raw.githubusercontent.com/jfreeze/gce-freebsd/master/base-installs.sh > /tmp/base-installs.sh
/bin/sh /tmp/base-installs.sh
echo "Installing web applications..."
curl https://raw.githubusercontent.com/jfreeze/gce-freebsd/master/web-installs.sh > /tmp/web-installs.sh
/bin/sh /tmp/web-installs.sh
echo "Copying extra config files..."
curl https://raw.githubusercontent.com/jfreeze/gce-freebsd/master/chg-shell-to-bash.sh > /tmp/chg-shell-to-bash.sh
chmod 755 /tmp/chg-shell-to-bash.sh
echo "Configuring nginx..."
curl https://raw.githubusercontent.com/jfreeze/gce-freebsd/master/nginx-setup.sh > /tmp/nginx-setup.sh
chmod 755 /tmp/nginx-setup.sh
echo
echo "Run /tmp/chg-shell-to-bash.sh for compatability with edeliver"
echo
echo "Nginx needs DOMAIN manually setup."
echo "Configure /tmp/nginx-setup.sh and run /tmp/nginx-setup.sh to complete"
echo
echo "Setup complete"