Skip to content
Snippets Groups Projects
Commit 43285028 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

fix small issues

parent 159b745c
No related branches found
No related tags found
No related merge requests found
...@@ -65,8 +65,8 @@ coreos: ...@@ -65,8 +65,8 @@ coreos:
Type=oneshot Type=oneshot
RemainAfterExit=true RemainAfterExit=true
ExecStartPre=-/bin/bash -euxc ' \ ExecStartPre=-/bin/bash -euxc ' \
fallocate -l 8192m /swap \ fallocate -l 8192m /swap &&\
chmod 600 /swap \ chmod 600 /swap &&\
mkswap /swap' mkswap /swap'
ExecStart=/sbin/swapon /swap ExecStart=/sbin/swapon /swap
ExecStop=/sbin/swapoff /swap ExecStop=/sbin/swapoff /swap
...@@ -75,27 +75,28 @@ coreos: ...@@ -75,27 +75,28 @@ coreos:
- name: install-compose.service - name: install-compose.service
command: start command: start
content: | content: |
[unit] [Unit]
Description=Install Docker Compose Description=Install Docker Compose
[Service] [Service]
Type=oneshot Type=oneshot
RemainAfterExit=true RemainAfterExit=true
ExecStart=-/bin/bash -euxc ' \ ExecStart=-/bin/bash -euxc ' \
mkdir -p /opt/bin \ mkdir -p /opt/bin &&\
curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose \ url=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r \'.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))\') &&\
curl -L $url > /opt/bin/docker-compose &&\
chmod +x /opt/bin/docker-compose' chmod +x /opt/bin/docker-compose'
- name: install-indiehosters.service - name: install-indiehosters.service
command: start command: start
content: | content: |
[unit] [Unit]
Description=Install IndieHosters Description=Install IndieHosters
[Service] [Service]
Type=oneshot Type=oneshot
RemainAfterExit=true RemainAfterExit=true
ExecStart=-/bin/bash -euxc ' \ ExecStart=-/bin/bash -euxc ' \
git clone https://github.com/indiehosters/LibrePaaS.git /indiehosters \ git clone https://github.com/indiehosters/LibrePaaS.git /indiehosters &&\
mkdir /{data,system} \ mkdir /{data,system} &&\
mkdir /data/trash \ mkdir /data/trash &&\
cp /indiehosters/unit-files/* /etc/systemd/system && systemctl daemon-reload \ cp /indiehosters/unit-files/* /etc/systemd/system && systemctl daemon-reload &&\
cp /indiehosters/utils/* /opt/bin/' cp /indiehosters/utils/* /opt/bin/'
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment