Skip to content
This repository was archived by the owner on Mar 26, 2020. It is now read-only.

Commit 2356ccb

Browse files
committed
make permision fix optional
1 parent ae05005 commit 2356ccb

10 files changed

+30
-9
lines changed

autodeploy-common.sh

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ if [ "${SKIP_GIT}" != 'true' ]; then
2424
VARNISH_ADM_OPTS=$(git config hooks.deployVarnishiAdmOpts)
2525
TAG_DEPLOYS=$(git config hooks.deployTagDeploys)
2626
TAG=$(git config hooks.deployTag)
27+
FIX_PERMS=$(git config hooks.deployFixPerms)
2728
fi
2829

2930
#defaults
@@ -41,6 +42,8 @@ fi
4142

4243
: ${TAG_DEPLOYS:='false'}
4344

45+
: ${FIX_PERMS:='true'}
46+
4447
#expects a subdir of the repository.
4548
: ${APP_SUBDIR:=''}
4649

autodeploy-drupal-make.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ COLUMNS=72 $DRUSH make $TMP_DIR/$MAKEFILE_NAME $BUILD_DIR
4545

4646
# Arreglar permisos
4747
# fix-drupal-perms.sh $TARGET
48-
. $LIB/drupal-fix-perms.sh $BUILD_DIR
48+
if [ "${FIX_PERMS}" = 'true' ]; then
49+
. $LIB/drupal-fix-perms.sh $BUILD_DIR
50+
fi
4951

5052
# Firmar Robots
5153
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

autodeploy-drupal.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ DEP_USER=$3
3737

3838
# Arreglar permisos
3939
# fix-drupal-perms.sh $TARGET
40-
. $LIB/drupal-fix-perms.sh $TMP_DIR${APP_SUBDIR}
40+
if [ "${FIX_PERMS}" = 'true' ]; then
41+
. $LIB/drupal-fix-perms.sh $TMP_DIR${APP_SUBDIR}
42+
fi
4143

4244
# Firmar Robots
4345
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

autodeploy-generic.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ DEP_USER=$3
4646

4747
# Arreglar permisos
4848
# fix-drupal-perms.sh $TARGET
49-
. $LIB/generic-fix-perms.sh $TMP_DIR
49+
if [ "${FIX_PERMS}" = 'true' ]; then
50+
. $LIB/generic-fix-perms.sh $TMP_DIR
51+
fi
5052

5153
# Firmar Robots
5254
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

autodeploy-moodle.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ DEP_USER=$3
3838

3939
# Arreglar permisos
4040
# fix-drupal-perms.sh $TARGET
41-
. $LIB/moodle-fix-perms.sh $TMP_DIR
41+
if [ "${FIX_PERMS}" = 'true' ]; then
42+
. $LIB/moodle-fix-perms.sh $TMP_DIR
43+
fi
4244

4345
# Firmar Robots
4446
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

autodeploy-prestashop.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ DEP_USER=$3
4545

4646
# Arreglar permisos
4747
# fix-drupal-perms.sh $TARGET
48-
. $LIB/prestashop-fix-perms.sh $TMP_DIR
48+
if [ "${FIX_PERMS}" = 'true' ]; then
49+
. $LIB/prestashop-fix-perms.sh $TMP_DIR
50+
fi
4951

5052
# Firmar Robots
5153
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

autodeploy-symfony-composer.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ cd $C_DIR
7171

7272
# Arreglar permisos
7373
# fix-drupal-perms.sh $TARGET
74-
. $LIB/symfony-fix-perms.sh $TMP_DIR
74+
if [ "${FIX_PERMS}" = 'true' ]; then
75+
. $LIB/symfony-fix-perms.sh $TMP_DIR
76+
fi
7577

7678
# Firmar Robots
7779
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

autodeploy-symfony.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ DEP_USER=$3
4545

4646
# Arreglar permisos
4747
# fix-drupal-perms.sh $TARGET
48-
. $LIB/symfony-fix-perms.sh $TMP_DIR
48+
if [ "${FIX_PERMS}" = 'true' ]; then
49+
. $LIB/symfony-fix-perms.sh $TMP_DIR
50+
fi
4951

5052
# Firmar Robots
5153
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

autodeploy-wordpress.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ DEP_USER=$3
4444

4545
# Arreglar permisos
4646
# fix-drupal-perms.sh $TARGET
47-
. $LIB/wordpress-fix-perms.sh $TMP_DIR
47+
if [ "${FIX_PERMS}" = 'true' ]; then
48+
. $LIB/wordpress-fix-perms.sh $TMP_DIR
49+
fi
4850

4951
# Firmar Robots
5052
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

autodeploy-yii.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ DEP_USER=$3
4545

4646
# Arreglar permisos
4747
# fix-drupal-perms.sh $TARGET
48-
. $LIB/yii-fix-perms.sh $TMP_DIR
48+
if [ "${FIX_PERMS}" = 'true' ]; then
49+
. $LIB/yii-fix-perms.sh $TMP_DIR
50+
fi
4951

5052
# Firmar Robots
5153
REPO_HASH=$($CAT $TMP_DIR/.git_hash)

0 commit comments

Comments
 (0)