Skip to content

Commit

Permalink
Debugging [5]
Browse files Browse the repository at this point in the history
  • Loading branch information
CWSpear committed Feb 9, 2016
1 parent 266e365 commit 4cd96a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function setenv {

function install-binary {
echo Stopping docker-volume-local-persist service if running
echo ''
if [[ $* == *--upstart* ]]; then
sudo service docker-volume-local-persist stop
else
Expand All @@ -67,6 +68,7 @@ function install-binary {
chmod +x $BINARY_DEST

echo Binary download
echo ''
}

function setup-upstart {
Expand All @@ -80,6 +82,7 @@ function setup-upstart {
sudo curl -fLsS "$UPSTART_CONFIG_URL" > $UPSTART_CONFIG_DEST

echo Upstart conf downloaded
echo ''
}

function start-upstart {
Expand All @@ -89,7 +92,8 @@ function start-upstart {
sudo service docker-volume-local-persist start
sudo service docker-volume-local-persist status

echo Done
echo ''
echo Done. If you see this message, that should mean it worked
}

function setup-systemd {
Expand All @@ -103,6 +107,7 @@ function setup-systemd {
sudo curl -fLsS "$SYSTEMD_CONFIG_URL" > $SYSTEMD_CONFIG_DEST

echo Systemd conf downloaded
echo ''
}

function start-systemd {
Expand All @@ -113,7 +118,8 @@ function start-systemd {
sudo systemctl start docker-volume-local-persist
sudo systemctl status docker-volume-local-persist

echo Done
echo ''
echo Done. If you see this message, that should mean it worked
}

setenv
Expand Down

0 comments on commit 4cd96a6

Please sign in to comment.