View Single Post
  #17  
Old 12-15-2003, 11:04 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Just noted a unix shell command that makes changing permissions a breeze

Set to writeable permissions:

Code:
for i in `sed -e 's/,.*$//g' < upgrade/3.4.9-3.5.0/file.lst`; do chmod 666 $i ; done

Set back to non-writeable permissions: (after upgrade is done)

Code:
for i in `sed -e 's/,.*$//g' < upgrade/3.4.9-3.5.0/file.lst`; do chmod 644 $i ; done
NOTE: this command is being ran from the xcart/ install dir, where upgrade/ is a subdir.

Replace the directory names in upgrade/3.4.9-3.5.0/ to the proper versions, and each file in the file.lst will be set to chmod 666 for writeable permissions.

Kudos!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote