aboutsummaryrefslogtreecommitdiffstats
path: root/.openshift/action_hooks
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-01 19:25:41 +0200
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-01 19:25:41 +0200
commit5cb2fa598172e8848cdb2b9f0101bff7ac97a1e1 (patch)
tree4685bd3752aab5df51a2fcc1ca6798aac1949b42 /.openshift/action_hooks
parente8545628035aea9b6f9093910416fb496f7d75de (diff)
downloadvolse-hubzilla-5cb2fa598172e8848cdb2b9f0101bff7ac97a1e1.tar.gz
volse-hubzilla-5cb2fa598172e8848cdb2b9f0101bff7ac97a1e1.tar.bz2
volse-hubzilla-5cb2fa598172e8848cdb2b9f0101bff7ac97a1e1.zip
Fixed deploy script
Diffstat (limited to '.openshift/action_hooks')
-rwxr-xr-x.openshift/action_hooks/deploy45
1 files changed, 37 insertions, 8 deletions
diff --git a/.openshift/action_hooks/deploy b/.openshift/action_hooks/deploy
index b7f095ccd..fb3136f32 100755
--- a/.openshift/action_hooks/deploy
+++ b/.openshift/action_hooks/deploy
@@ -80,31 +80,60 @@ echo "Files sym links created"
####
-# Copy config.php from the repo, rename it and place it in the data directory.
+# Copy .htconfig.php from the repo, rename it and place it in the data directory.
# if it's there already, skip it.
if [ ! -f ${OPENSHIFT_DATA_DIR}config.php ];
then
-cp ${OPENSHIFT_REPO_DIR}config.php ${OPENSHIFT_DATA_DIR}config.php
+cp ${OPENSHIFT_REPO_DIR}.htconfig.php ${OPENSHIFT_DATA_DIR}.htconfig.php
-echo "config.php copied."
+echo ".htconfig.php copied."
else
-echo "Looks like the config.php file is already there, we won't overwrite it."
+echo "Looks like the .htconfig.php file is already there, we won't overwrite it."
fi
####
-# symlink the config.php file.
+# symlink the .htconfig.php file.
-echo "Create sym link for config.php"
+echo "Create sym link for .htconfig.php"
-ln -sf ${OPENSHIFT_DATA_DIR}config.php ${OPENSHIFT_REPO_DIR}config.php
+ln -sf ${OPENSHIFT_DATA_DIR}.htconfig.php ${OPENSHIFT_REPO_DIR}.htconfig.php
-echo "config.php symlink created"
+echo ".htconfig.php symlink created"
####
+# Copy .htaccess from the repo, rename it and place it in the data directory.
+# if it's there already, skip it.
+
+if [ ! -f ${OPENSHIFT_DATA_DIR}.htaccess ];
+
+then
+
+cp ${OPENSHIFT_REPO_DIR}.htaccess ${OPENSHIFT_DATA_DIR}.htaccess
+
+echo ".htaccess copied."
+
+else
+
+echo "Looks like the .htaccess file is already there, we won't overwrite it."
+
+fi
+
+####
+
+# symlink the .htaccess file.
+
+echo "Create sym link for .htaccess"
+
+ln -sf ${OPENSHIFT_DATA_DIR}.htaccess ${OPENSHIFT_REPO_DIR}.htaccess
+
+echo ".htaccess symlink created"
+
+####
+