Pinchie / RaspiPass

RaspiPass - Homepass software for the Raspberry Pi 3
46 stars 5 forks source link

Read file permissions from list when executing copy_to_sysdirs.sh #4

Closed Pinchie closed 7 years ago

Pinchie commented 7 years ago

As files change and get added it's becoming more annoying to amend the list mid-script in scripts/copy_to_sysdirs.sh

A csv-formatted file in the scripts/ directory with the RaspiPass files and their permissions would be much easier to work with in the long run, and it would reduce the size of copy_to_sysdirs.sh, enhancing readability

Pinchie commented 7 years ago

This would also allow me to (hopefully) set a post-checkout script using the same file list, albeit including the /scripts directory. Maybe add the /scripts directory, and have copy_to_sysdirs.sh ignore any location starting with /scripts, as that directory isn't involved in the copy

That would put me one step closer to letting people set up a raspbian install their way and then pull the git repo and install

Pinchie commented 7 years ago

Added to working tree for testing. Permissions are stored in raspi_secure/filepermissions