emoncms / backup

emoncms backup module
GNU Affero General Public License v3.0
1 stars 14 forks source link

User permissions are hardcoded #57

Closed borpin closed 4 years ago

borpin commented 4 years ago

These scripts rely too heavily on hardcoded paths and assume the 'pi' user.

When installed on a different system (such as ubuntu) with a different username, the various scripts fail (import for instance) because of this.

TrystanLea commented 4 years ago

Thanks @borpin Fixed the places I can find that that hardcode to user pi: https://github.com/emoncms/backup/commit/c62c5ab377f14f53a91ea529167d397049e9d1a6

borpin commented 4 years ago

Except you hardcoded the install location...

borpin commented 4 years ago

https://github.com/emoncms/backup/blob/e8110759c46a62aaa86f70756c169465ac7acf16/emoncms-copy.sh#L9