diff --git a/rootfs/usr/share/planefence/prep-planefence.sh b/rootfs/usr/share/planefence/prep-planefence.sh index a239398..4e82b7a 100755 --- a/rootfs/usr/share/planefence/prep-planefence.sh +++ b/rootfs/usr/share/planefence/prep-planefence.sh @@ -44,9 +44,11 @@ function configure_both() { # However, if there is a planefence.config file in the ..../persist directory # (by default exposed to ~/.planefence) then export all of those variables as well # note that the grep strips off any spaces at the beginning of a line, and any commented line -mkdir -p -m 0700 /usr/share/planefence/persist/.internal +mkdir -p -m 0777 /usr/share/planefence/persist/.internal mkdir -p /usr/share/planefence/persist/planepix -chmod -fR a+rw /usr/share/planefence/persist /usr/share/planefence/persist/{.[!.]*,*} +chmod -f a=rwx /usr/share/planefence/persist +chmod -fR a+rw /usr/share/planefence/persist/{.[!.]*,*} + chmod a=rwx /usr/share/planefence/persist/planepix if [[ -f /usr/share/planefence/persist/planefence.config ]] then