Skip to content

Commit a70bda6

Browse files
committed
Tighten staging sync SQL temp permissions
1 parent 0fab3ab commit a70bda6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bash/ss-sync-staging.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fi
118118
## import database ##
119119
ss_cp /var/www/backups/mysql/production.sql "${TMP_STAGING_SYNC_SQL}"
120120
chown mysql:mysql "${TMP_STAGING_SYNC_SQL}" ## does not matter if -L flag used below
121-
chmod 0644 "${TMP_STAGING_SYNC_SQL}" ## does not matter if -L flag used below
121+
chmod 0640 "${TMP_STAGING_SYNC_SQL}" ## must be 0640
122122
ss_mysql_user staging < "${TMP_STAGING_SYNC_SQL}"
123123

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

0 commit comments

Comments
 (0)