Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timothee Gosselin
compose.libre.sh
Commits
729d9fcf
Commit
729d9fcf
authored
10 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Removes unsued setup script
parent
7d7b3369
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/setup.sh
+0
-49
0 additions, 49 deletions
scripts/setup.sh
with
0 additions
and
49 deletions
scripts/setup.sh
deleted
100755 → 0
+
0
−
49
View file @
7d7b3369
#!/bin/bash -eux
if
[
$#
-ge
1
]
;
then
HOSTNAME
=
$1
else
echo
"Usage: sh /data/indiehosters/scripts/setup.sh k1.you.indiehosters.net"
exit
1
fi
# Install cloud-config
if
[
-f
/tmp/vagrantfile-user-data
]
;
then
mv
/tmp/vagrantfile-user-data /var/lib/coreos-vagrant/vagrantfile-user-data
fi
# Pull relevant docker images
docker pull pierreozoux/haproxy
docker pull pierreozoux/confd
docker pull pierreozoux/email-forwarder
docker pull pierreozoux/nginx
docker pull pierreozoux/mysql
docker pull pierreozoux/wordpress
docker pull pierreozoux/known
docker pull ibuildthecloud/systemd-docker
# Install unit-files
sudo cp
/data/indiehosters/unit-files/
*
/etc/systemd/system
&&
systemctl daemon-reload
# Create Directory structure
mkdir
-p
/data/domains
mkdir
-p
/data/runtime/haproxy/approved-certs
mkdir
-p
/data/runtime/postfix
# Configure and start HAproxy
cp
/data/indiehosters/scripts/unsecure-certs/indiehosters.dev.pem /data/runtime/haproxy/approved-certs/default.pem
systemctl
enable
confd.service
systemctl start confd.service
systemctl
enable
haproxy.path
systemctl start haproxy.path
# Configure and start postfix
touch
/data/runtime/postfix/hostname
touch
/data/runtime/postfix/destinations
touch
/data/runtime/postfix/forwards
systemctl
enable
email-forwarder.service
systemctl start email-forwarder.service
# Adds backup ssh key to the list of known hosts
ssh
-o
StrictHostKeyChecking
=
no
`
cat
/data/BACKUP_DESTINATION
`
"exit"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment