Skip to content

Instantly share code, notes, and snippets.

@plietar
plietar / migrate-git-plugin.sh
Last active December 26, 2015 19:29
Dokku git plugin migration script
#!/bin/bash
set -e
DOKKU_ROOT=/home/dokku
GIT_HOME=/home/git
# Old repo files of when PPAs were used. Remove them
rm -f /etc/apt/sources.list.d/dotcloud-lxc-docker-raring.list*
# Stop and get rid of the nginx-reload daemon if it the user is upgrading from and old version (pre PR #262)
@plietar
plietar / dokku-client
Created October 28, 2013 13:18
Pass the -t option to ssh if stdin is a terminal
#!/usr/bin/env bash
if [[ -t 0 ]]; then
ssh -t $@
else
ssh -T $@
fi
#!/bin/bash
set -eu
# La ou est installé stechec
prefix="/usr/"
# Default values
map="$prefix/share/stechec/prolo2011/maps/map1"
repo=$(pwd)