Skip to content

Commit 094202e

Browse files
committed
Tighten development sync SQL temp permissions
1 parent a70bda6 commit 094202e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bash/ss-sync-development.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fi
104104
## import database ##
105105
ss_cp /var/www/backups/mysql/production.sql "${TMP_DEVELOPMENT_SYNC_SQL}"
106106
chown mysql:mysql "${TMP_DEVELOPMENT_SYNC_SQL}" ## does not matter if -L flag used below
107-
chmod 0644 "${TMP_DEVELOPMENT_SYNC_SQL}" ## does not matter if -L flag used below
107+
chmod 0640 "${TMP_DEVELOPMENT_SYNC_SQL}" ## must be 0640
108108
ss_mysql_user development < "${TMP_DEVELOPMENT_SYNC_SQL}"
109109

110110
## fix development home and siteurl fields (no mass search/replace to avoid potential conflicts) ##

0 commit comments

Comments
 (0)