...
|
...
|
@@ -122,9 +122,13 @@ sudo apt-get install -y -q `cat $FILES/apts/* | cut -d\# -f1 | grep -Ev "mysql-s
|
122
|
122
|
# install python requirements
|
123
|
123
|
sudo PIP_DOWNLOAD_CACHE=/var/cache/pip pip install `cat $FILES/pips/*`
|
124
|
124
|
|
125
|
|
-# git clone only if directory doesn't exist already
|
|
125
|
+# git clone only if directory doesn't exist already. Since ``DEST`` might not
|
|
126
|
+# be owned by the installation user, we create the directory and change the
|
|
127
|
+# ownership to the proper user.
|
126
|
128
|
function git_clone {
|
127
|
129
|
if [ ! -d $2 ]; then
|
|
130
|
+ sudo mkdir $2
|
|
131
|
+ sudo chown `whoami` $2
|
128
|
132
|
git clone $1 $2
|
129
|
133
|
fi
|
130
|
134
|
}
|