File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -100,24 +100,14 @@ Deny from all"
100
100
101
101
# Checking files/.htaccess
102
102
if [[ -e /var/www/sites/default/files/.htaccess ]]; then
103
- if [[ " $FILES_HTACCESS " = $( cat htaccessfiles.txt) ]]; then
104
- echo " File already exists"
105
- else
106
- echo " Files different"
107
- echo " $FILES_HTACCESS " > /var/www/sites/default/files/.htaccess
108
- fi
103
+ echo " File already exists"
109
104
else
110
105
echo " $FILES_HTACCESS " > /var/www/sites/default/files/.htaccess
111
106
fi
112
107
113
108
# Checking /tmp/.htaccess
114
109
if [[ -e /tmp/.htaccess ]]; then
115
- if [[ " $TMP_HTACCESS " = $( cat htaccessfiles.txt) ]]; then
116
- echo " File already exists"
117
- else
118
- echo " Files different"
119
- echo " $TMP_HTACCESS " > /tmp/.htaccess
120
- fi
110
+ echo " File already exists"
121
111
else
122
112
echo " $TMP_HTACCESS " > /tmp/.htaccess
123
113
fi
You can’t perform that action at this time.
0 commit comments