From e4944ee2636f3be086efa8a49857a37e445d2141 Mon Sep 17 00:00:00 2001 From: justsomedude Date: Thu, 1 Oct 2020 23:33:19 +0200 Subject: [PATCH 1/2] added all the stuff to make script useable from www-data --- install-raspbian.sh | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/install-raspbian.sh b/install-raspbian.sh index f3dd247bd..44806e54d 100755 --- a/install-raspbian.sh +++ b/install-raspbian.sh @@ -300,13 +300,39 @@ dtoverlay=gpio-no-irq EOF echo -e "\033[0;33m### You'd probably like to use the file backup feature." -read -p "### Would you like to add a cronjob for file backup? [y/N] " -n 1 -r +read -p "### Would you like to enable the file backup? [y/N] " -n 1 -r echo -e "\033[0m" if [[ $REPLY =~ ^[Yy]$ ]] then + info "### Disabling automount for pi user" + + mkdir -p /home/pi/.config/pcmanfm/LXDE/ + cat >> /home/pi/.config/pcmanfm/LXDE/pcmanfm.conf <> /etc/polkit-1/localauthority/50-local.d/udisks2.pkla <> /var/log/photoboothsync/synclog.txt 2>&1"; } | sudo -u www-data crontab - fi info "### Congratulations you finished the install process." From 9ac2398a2197c52261f57e0a5a6b185f868d14a3 Mon Sep 17 00:00:00 2001 From: justsomedude Date: Thu, 1 Oct 2020 23:49:28 +0200 Subject: [PATCH 2/2] ofc stuff on the inet isnt correct --- install-raspbian.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install-raspbian.sh b/install-raspbian.sh index 44806e54d..af2de8f9e 100755 --- a/install-raspbian.sh +++ b/install-raspbian.sh @@ -306,13 +306,16 @@ if [[ $REPLY =~ ^[Yy]$ ]] then info "### Disabling automount for pi user" - mkdir -p /home/pi/.config/pcmanfm/LXDE/ - cat >> /home/pi/.config/pcmanfm/LXDE/pcmanfm.conf <> /home/pi/.config/pcmanfm/LXDE-pi/pcmanfm.conf <> /etc/polkit-1/localauthority/50-local.d/udisks2.pkla <